Spaces:
Runtime error
Runtime error
Download Dockerfile from duongve/Spatial_Control_for_SD: direct link, hf CLI and curl.
- Browser
- Download file 565 Bytes
-
https://huggingface.co/spaces/duongve/Spatial_Control_for_SD/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/duongve/Spatial_Control_for_SD/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/duongve/Spatial_Control_for_SD/resolve/main/Dockerfile
565 Bytes
| FROM python:3.9-slim | |
| ENV DEBIAN_FRONTEND noninteractive | |
| WORKDIR /content | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| g++ \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN apt-get update && apt-get install -y libgl1-mesa-glx | |
| RUN apt-get update && apt-get install -y libglib2.0-0 | |
| ADD . . | |
| RUN pip install --no-cache-dir -r ./requirements.txt | |
| RUN adduser --disabled-password --gecos '' user && \ | |
| chown -R user:user /content && \ | |
| chmod -R 777 /content | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["python", "./app.py"] | |