Initial commit
This commit is contained in:
21
transcription-api/Dockerfile
Normal file
21
transcription-api/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM python:3.10-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN export DEBIAN_FRONTEND=noninteractive \
|
||||
&& apt-get -qq update \
|
||||
&& apt-get -qq install --no-install-recommends \
|
||||
ffmpeg curl\
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip3 install -r requirements.txt
|
||||
RUN pip3 install python-multipart
|
||||
|
||||
COPY . .
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=15s \
|
||||
CMD ["python3", "healthcheck.py"]
|
||||
|
||||
EXPOSE 8000
|
||||
CMD ["python3", "main.py"]
|
||||
Reference in New Issue
Block a user