stt-function/Dockerfile
Niklas Mueller 7325f650b6 INIT
2024-07-23 18:23:54 +02:00

22 lines
582 B
Docker

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"]