-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.dev
More file actions
35 lines (27 loc) · 932 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
35 lines (27 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Lightweight dev image — no frontend build, no torch/pyannote, no GPU
FROM python:3.10-slim
RUN apt-get update && apt-get install -y \
ffmpeg \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libgdk-pixbuf-2.0-0 \
libcairo2 \
libffi-dev \
shared-mime-info \
fonts-dejavu-core \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
ENV PYTHONPATH=/app
COPY requirements.dev.txt .
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.dev.txt
COPY gigaam_transcriber/ ./gigaam_transcriber/
COPY routers/ ./routers/
COPY api.py ./
COPY alembic/ ./alembic/
COPY alembic.ini ./
RUN mkdir -p /app/data
EXPOSE 7860
HEALTHCHECK --interval=15s --timeout=5s --start-period=30s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health'); print('ok')" || exit 1
CMD ["sh", "-c", "alembic upgrade head && python api.py"]