This commit is contained in:
Niklas Mueller 2024-07-23 18:23:54 +02:00
commit 7325f650b6
6 changed files with 109 additions and 0 deletions

22
Dockerfile Normal file
View file

@ -0,0 +1,22 @@
FROM python:3.11-slim
# set the working directory
WORKDIR /app
RUN mkdir /app/input_files
RUN mkdir /app/transcripts
RUN apt-get update
RUN apt-get install -y ffmpeg
# install dependencies
COPY ./requirements.txt /app
RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --no-cache-dir --upgrade -r requirements.txt
# copy model to container
COPY ./large-v3.pt /root/.cache/whisper/large-v3.pt
# copy the scripts to the /app folder
COPY ./init.sh /app
COPY ./runner.py /app
CMD ["bash", "init.sh"]