FROM python:3.10-slim WORKDIR /app # ── System Dependencies ──────────────────────────────────────────── RUN apt-get update && apt-get install -y \ libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* # ── Python Dependencies ──────────────────────────────────────────── COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # ── Router App ───────────────────────────────────────────────────── COPY app.py . EXPOSE 7860 # ── Start the Router ─────────────────────────────────────────────── # Router is lightweight — no model, no pool # Single worker is enough — it only checks URLs and forwards requests # Starts in ~2 seconds (no model loading) CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]