Spaces:
Sleeping
Sleeping
Download Dockerfile from otito254/epl-predictor-api: direct link, hf CLI and curl.
- Browser
- Download file 453 Bytes
-
https://huggingface.co/spaces/otito254/epl-predictor-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/otito254/epl-predictor-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/otito254/epl-predictor-api/resolve/main/Dockerfile
453 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y \ | |
| gcc \ | |
| g++ \ | |
| libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Models are already at models/saved/ — no download needed | |
| ENV MODELS_DIR=models/saved | |
| ENV FEATURES_PARQUET=/tmp/features.parquet | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] |