Spaces:
Running
Running
Download Dockerfile from s-ttp/slipstream: direct link, hf CLI and curl.
- Browser
- Download file 491 Bytes
-
https://huggingface.co/spaces/s-ttp/slipstream/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/s-ttp/slipstream/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/s-ttp/slipstream/resolve/main/Dockerfile
491 Bytes
| FROM python:3.12-slim | |
| WORKDIR /app | |
| ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Run as a non-root user (HF recommends uid 1000). data/ must stay writable: the pick | |
| # panels and the risk screen cache there (ephemeral — a restart just recomputes). | |
| RUN useradd -m -u 1000 app | |
| COPY --chown=app:app . . | |
| USER app | |
| # HF Spaces serve on 7860 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |