Add GitLab data-push (gitlab.pavlovia.org) on finish + Dockerfile/.env.example/DEPLOY.md for free Hugging Face Spaces hosting; env-configurable port
ce37c44 Download Dockerfile from princessamygdala/TreasureHuntForTwo: direct link, hf CLI and curl.
- Browser
- Download file 529 Bytes
-
https://huggingface.co/spaces/princessamygdala/TreasureHuntForTwo/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/princessamygdala/TreasureHuntForTwo/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/princessamygdala/TreasureHuntForTwo/resolve/main/Dockerfile
529 Bytes
| # Container for hosting the task (e.g. on Hugging Face Spaces, Cloud Run, Fly, any Docker host) | |
| FROM python:3.12-slim | |
| # git is needed because pyproject installs nicewebrl from a git URL | |
| RUN apt-get update && apt-get install -y --no-install-recommends git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install --no-cache-dir uv | |
| WORKDIR /app | |
| COPY . . | |
| RUN uv sync --frozen --no-dev | |
| # Hugging Face Spaces serves on 7860; RELOAD off in production | |
| ENV PORT=7860 \ | |
| RELOAD=0 | |
| EXPOSE 7860 | |
| CMD ["uv", "run", "python", "web_app.py"] | |