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