Spaces:
Sleeping
Sleeping
Download Dockerfile from juiceb0xc0de/forge: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/spaces/juiceb0xc0de/forge/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/juiceb0xc0de/forge/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/juiceb0xc0de/forge/resolve/main/Dockerfile
665 Bytes
| # Forge demo — single container serves the API + static frontend over the | |
| # prebuilt forge.db. No scraping / no LLM at runtime (that's build-time, local), | |
| # so this stays tiny and CPU-only — fits a free HF Docker Space. | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY forge/ ./forge/ | |
| COPY frontend/ ./frontend/ | |
| # Bake the prebuilt graph if it shipped in the build context; otherwise seed a | |
| # fresh curated graph so the Space always boots with something. | |
| RUN test -f forge/forge.db || python -m forge.seed | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "forge.api:app", "--host", "0.0.0.0", "--port", "7860"] | |