Spaces:
Sleeping
Sleeping
| # Primary deploy path for the HF Space (sdk: docker, app_port: 7860). | |
| # uvicorn serves app:app directly (FastAPI; radio at "/" + same-origin /api/* | |
| # proxy + Gradio mounted at /gradio). Deterministic serving -- no dependence on | |
| # how an HF gradio-launcher picks up app objects. README front-matter is already | |
| # set to `sdk: docker` / `app_port: 7860` to match this. | |
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |