FROM python:3.12-slim RUN apt-get update && apt-get install -y curl aria2 ripgrep && rm -rf /var/lib/apt/lists/* WORKDIR /app RUN pip install --no-cache-dir fastapi uvicorn python-multipart huggingface_hub[hf_xet] jinja2 requests COPY app.py . EXPOSE 7860 CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]