Spaces:
Sleeping
Sleeping
Download Dockerfile from nanye/diffusion_models: direct link, hf CLI and curl.
- Browser
- Download file 301 Bytes
-
https://huggingface.co/spaces/nanye/diffusion_models/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/nanye/diffusion_models/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nanye/diffusion_models/resolve/main/Dockerfile
301 Bytes
| FROM python:3.11-slim | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user:user . . | |
| RUN mkdir -p /app/models && chown user:user /app/models | |
| USER user | |
| ENV HOME=/home/user | |
| EXPOSE 8000 | |
| CMD ["python", "-u", "server.py"] | |