Dockerfile 428 B

1234567891011121314151617181920212223
  1. # main image
  2. FROM python:3.9-bullseye
  3. WORKDIR /app/
  4. # Install dependencies
  5. RUN apt-get update && apt-get install -y \
  6. ffmpeg libolm-dev \
  7. && apt-get clean \
  8. && rm -rf /var/lib/apt/lists/*
  9. # Install Whisper
  10. RUN pip install git+https://github.com/openai/whisper.git
  11. ADD requirements.txt .
  12. RUN pip install -r requirements.txt && \
  13. apt-get autoremove -y
  14. VOLUME /data/
  15. ADD ./*.py /app/
  16. CMD ["python3", "-u", "main.py"]