Download Dockerfile from pup-py/fetch: direct link, hf CLI and curl.
- Browser
- Download file 521 Bytes
-
https://huggingface.co/spaces/pup-py/fetch/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/pup-py/fetch/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/pup-py/fetch/resolve/main/Dockerfile
521 Bytes
| FROM debian:latest AS puppy | |
| # prep | |
| RUN apt-get update \ | |
| && apt-get install -y curl \ | |
| && apt-get clean | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH=/home/user/.pixi/bin:$PATH | |
| RUN mkdir $HOME/puppy | |
| WORKDIR $HOME/puppy | |
| # install puppy | |
| RUN curl -fsSL https://raw.githubusercontent.com/liquidcarbon/puppy/main/pup.sh | bash -s 3.13 | |
| RUN pup --help | |
| # setup app env | |
| RUN pup new appenv | |
| WORKDIR appenv | |
| COPY --chown=user ./* . | |
| RUN pixi run uv sync --project . | |
| # HELLO WORLD | |
| EXPOSE 7860 | |
| CMD .venv/bin/python -m fetch | |