Spaces:
Running
Running
Download Dockerfile from malteos/cc-repackage: direct link, hf CLI and curl.
- Browser
- Download file 792 Bytes
-
https://huggingface.co/spaces/malteos/cc-repackage/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/malteos/cc-repackage/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/malteos/cc-repackage/resolve/main/Dockerfile
792 Bytes
| # Hugging Face Space (sdk: docker) image for the FastAPI wizard UI. | |
| # The Space only serves the UI and SUBMITS HF Jobs — the heavy repackaging runs in | |
| # those jobs (which install duckdb / cdx_toolkit themselves), so this image stays small: | |
| # just the web shell (FastAPI + uvicorn + huggingface_hub + authlib). | |
| FROM python:3.12-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONPATH=/app \ | |
| HF_HOME=/tmp/hf | |
| WORKDIR /app | |
| COPY server/requirements.txt server/requirements.txt | |
| RUN pip install --no-cache-dir -r server/requirements.txt | |
| COPY src/ src/ | |
| COPY server/ server/ | |
| EXPOSE 7860 | |
| # --proxy-headers so request URLs/redirects are correct behind the HF Spaces proxy. | |
| CMD ["uvicorn", "server.main:app", "--host", "0.0.0.0", "--port", "7860", \ | |
| "--proxy-headers", "--forwarded-allow-ips", "*"] | |