FROM python:3.10-slim # Minimal system deps: ffmpeg for audio remuxing, libgl1/libglib for OpenCV, # build-essential for compiling insightface's C++ extension. RUN apt-get update && apt-get install -y --no-install-recommends \ ffmpeg \ libgl1 \ libglib2.0-0 \ build-essential \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . ENV GRADIO_SERVER_NAME=0.0.0.0 ENV GRADIO_SERVER_PORT=7860 EXPOSE 7860 # The pip-installed nvidia-*-cu12 packages (see requirements.txt) ship the # actual CUDA/cuDNN .so files onnxruntime-gpu needs, but they land inside # site-packages rather than a