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"]