FROM python:3.11-slim WORKDIR /app # Install ffmpeg only (no compilation needed) RUN apt-get update && apt-get install -y \ ffmpeg \ && rm -rf /var/lib/apt/lists/* # Copy requirements and install COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy app COPY app.py . EXPOSE 7860 CMD ["python", "app.py"]