Download Dockerfile from s-ttp/crucible: direct link, hf CLI and curl.
- Browser
- Download file 506 Bytes
-
https://huggingface.co/spaces/s-ttp/crucible/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/s-ttp/crucible/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/s-ttp/crucible/resolve/main/Dockerfile
506 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 \ | |
| RECOMMENDER_DIR=/app/engine \ | |
| CRUCIBLE_CACHE=/data/cache | |
| # libgomp1 is required by xgboost (OpenMP); the rest are lean build deps for wheels | |
| RUN apt-get update && apt-get install -y --no-install-recommends libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |