FROM python:3.10-slim ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ HF_HUB_DISABLE_TELEMETRY=1 # Minimal system deps; NO dev FFmpeg headers (prevents PyAV build path entirely) RUN apt-get update && apt-get install -y --no-install-recommends \ ffmpeg libsndfile1 git \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt ./ RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt COPY app.py ./ EXPOSE 7860 CMD ["python", "app.py"]