Spaces:
Running
Running
Download Dockerfile from 2026worldcup/predictor: direct link, hf CLI and curl.
- Browser
- Download file 714 Bytes
-
https://huggingface.co/spaces/2026worldcup/predictor/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/2026worldcup/predictor/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/2026worldcup/predictor/resolve/main/Dockerfile
714 Bytes
| FROM node:22-bookworm-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONUTF8=1 \ | |
| PYTHONIOENCODING=utf-8 \ | |
| NEXT_TELEMETRY_DISABLED=1 \ | |
| API_BACKEND=http://127.0.0.1:8000 \ | |
| PORT=7860 | |
| WORKDIR /app | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends python3 python3-pip python3-venv build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt ./ | |
| RUN python3 -m venv /opt/venv \ | |
| && /opt/venv/bin/pip install --upgrade pip \ | |
| && /opt/venv/bin/pip install -r requirements.txt | |
| ENV PATH="/opt/venv/bin:${PATH}" | |
| COPY apps/web/package*.json ./apps/web/ | |
| RUN cd apps/web && npm ci | |
| COPY . . | |
| RUN cd apps/web && npm run build | |
| EXPOSE 7860 | |
| CMD ["bash", "scripts/hf_start.sh"] | |