Download Dockerfile from timboie/test: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/spaces/timboie/test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/timboie/test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/timboie/test/resolve/main/Dockerfile
400 Bytes
| FROM python:3.9.9-bullseye | |
| WORKDIR /src | |
| RUN apt-get update && \ | |
| apt-get install -y \ | |
| libgl1 libglib2.0-0 | |
| COPY requirements.txt /src/ | |
| RUN pip3 install -r requirements.txt | |
| COPY stable_diffusion_engine.py demo.py demo_web.py /src/ | |
| COPY data/ /src/data/ | |
| # download models | |
| RUN python3 demo.py --num-inference-steps 1 --prompt "test" --output /tmp/test.jpg | |
| ENTRYPOINT ["python3", "demo.py"] | |