dubbing / Dockerfile
lele1894's picture
Upload 6 files
f62ea2d verified
raw
history blame contribute delete
375 Bytes
FROM python:3.9
WORKDIR /code
RUN apt-get update && apt-get install -y \
ffmpeg \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
RUN pip install -U yt-dlp
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 预下载模型
RUN python -c "import whisper; whisper.load_model('tiny')"
COPY . .
CMD ["python", "app.py"]