FROM python:3.10-slim # 1. Install OS and Python dependencies RUN apt-get update \ && apt-get install -y build-essential curl git \ && pip install --upgrade pip \ onnxruntime-genai==0.8.3 \ gradio \ huggingface_hub>=0.33.3 \ numpy \ && rm -rf /var/lib/apt/lists/* # 2. Download the ONNX model files at build time RUN python - <