Download Dockerfile from fabricationworkshop/streamdiffusion: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/fabricationworkshop/streamdiffusion/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/fabricationworkshop/streamdiffusion/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/fabricationworkshop/streamdiffusion/resolve/main/Dockerfile
428 Bytes
| FROM nvidia/cuda:12.1.1-runtime-ubuntu22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV PYTHONUNBUFFERED=1 | |
| RUN apt-get update && apt-get install -y \ | |
| python3 python3-pip git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip3 install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| # HF Spaces expects port 7860 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |