Spaces:
Sleeping
Sleeping
Download Dockerfile from build-small-hackathon/nightwave: direct link, hf CLI and curl.
- Browser
- Download file 681 Bytes
-
https://huggingface.co/spaces/build-small-hackathon/nightwave/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/build-small-hackathon/nightwave/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/build-small-hackathon/nightwave/resolve/main/Dockerfile
681 Bytes
| # 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"] | |