dubbingAI / Dockerfile
Ricky01anjay's picture
Update Dockerfile
a8a3edf verified
raw
history blame contribute delete
553 Bytes
FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN apt-get update && apt-get install -y \
ffmpeg \
git \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir \
flask \
werkzeug \
"moviepy<2.0.0" \
decorator \
openai-whisper \
edge-tts \
requests \
librosa \
numpy \
transformers \
torch \
librosa \
soundfile
RUN python -c "import whisper; whisper.load_model('base')"
COPY app.py .
RUN mkdir -p uploads && chmod 777 uploads
EXPOSE 7860
CMD ["python", "app.py"]