Dockerfile 821 B

1234567891011121314151617181920212223242526272829303132
  1. FROM python:3.9-bullseye
  2. WORKDIR /app/
  3. # Install dependencies
  4. RUN apt-get update && apt-get install -y \
  5. ffmpeg libolm-dev \
  6. && apt-get clean \
  7. && rm -rf /var/lib/apt/lists/*
  8. # Install Whisper
  9. RUN pip install git+https://github.com/openai/whisper.git
  10. # Install model files
  11. RUN whisper --model tiny dummy.wav; exit 0
  12. #RUN whisper --model base dummy.wav; exit 0
  13. #RUN whisper --model small dummy.wav; exit 0
  14. #RUN whisper --model medium dummy.wav; exit 0
  15. #RUN whisper --model large dummy.wav; exit 0
  16. #RUN whisper --model tiny.en dummy.wav; exit 0
  17. #RUN whisper --model base.en dummy.wav; exit 0
  18. #RUN whisper --model small.en dummy.wav; exit 0
  19. #RUN whisper --model medium.en dummy.wav; exit 0
  20. ADD requirements.txt /app/
  21. RUN pip install -r requirements.txt
  22. VOLUME /data/
  23. ADD . /app/
  24. CMD ["python", "-u", "main.py"]