TreasureHuntForTwo / Dockerfile
princessamygdala's picture
Add GitLab data-push (gitlab.pavlovia.org) on finish + Dockerfile/.env.example/DEPLOY.md for free Hugging Face Spaces hosting; env-configurable port
ce37c44
Raw History Blame Contribute Delete
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"]