Download Dockerfile from d1d4c/retro-cpu: direct link, hf CLI and curl.
- Browser
- Download file 888 Bytes
-
https://huggingface.co/spaces/d1d4c/retro-cpu/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/d1d4c/retro-cpu/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/d1d4c/retro-cpu/resolve/main/Dockerfile
888 Bytes
| FROM python:3.11-slim | |
| # HF Dev Mode injects an SSH server + VS Code layer that requires git (and a few | |
| # common utilities) to be present in the image. python:*-slim ships without them, | |
| # so install them up front or the Dev Mode build fails at `git config` (exit 127). | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git curl ca-certificates procps \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # HF Spaces runs as a non-root user (uid 1000) by convention. | |
| RUN useradd -m -u 1000 user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONUNBUFFERED=1 | |
| WORKDIR /home/user/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user bruno_v1.json . | |
| COPY --chown=user bruno_graph.py . | |
| COPY --chown=user app.py . | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |