FROM python:3.11-slim RUN apt-get update && apt-get install -y \ ffmpeg \ git \ ca-certificates \ && rm -rf /var/lib/apt/lists/* RUN update-ca-certificates WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app.py . RUN mkdir -p /tmp/downloads EXPOSE 7860 ENV PYTHONUNBUFFERED=1 CMD ["python", "app.py"]