Spaces:
Sleeping
Sleeping
Download Dockerfile from xstard/decision-model: direct link, hf CLI and curl.
- Browser
- Download file 751 Bytes
-
https://huggingface.co/spaces/xstard/decision-model/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/xstard/decision-model/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/xstard/decision-model/resolve/main/Dockerfile
751 Bytes
| FROM python:3.13-slim | |
| ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 \ | |
| GRADIO_ANALYTICS_ENABLED=False HF_HUB_DISABLE_TELEMETRY=1 \ | |
| HF_HOME=/home/user/.cache/huggingface DECISION_MODEL_HOME=/app OMP_NUM_THREADS=2 | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir torch==2.11.0 --index-url https://download.pytorch.org/whl/cpu \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user:user pyproject.toml README.md ./ | |
| COPY --chown=user:user src ./src | |
| COPY --chown=user:user app.py ./ | |
| RUN pip install --no-cache-dir --no-deps . && chown -R user:user /app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--no-access-log"] | |