Dockerfile 477 B

123456789101112131415161718192021222324252627
  1. FROM python:3-bullseye-slim
  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. ADD requirements.txt .
  9. RUN pip install -r requirements.txt
  10. # Install Whisper
  11. ADD whisper.cpp/ .
  12. RUN cd whisper.cpp && \
  13. make tiny && \
  14. cp main ../whisper && \
  15. cp models/ .. && \
  16. cd .. && \
  17. rm -rf whisper.cpp/
  18. VOLUME /data/
  19. ADD . /app/
  20. CMD ["python", "-u", "main.py"]