Download Dockerfile from PIFY24/COMIDAS1: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/spaces/PIFY24/COMIDAS1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/PIFY24/COMIDAS1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/PIFY24/COMIDAS1/resolve/main/Dockerfile
1.04 kB
| FROM python:3.10-slim | |
| RUN apt-get update && apt-get install -y \ | |
| git wget ffmpeg libgl1 libglib2.0-0 libsm6 libxext6 libxrender-dev unzip && \ | |
| rm -rf /var/lib/apt/lists/* | |
| WORKDIR /workspace | |
| ENV CUDA_VISIBLE_DEVICES="" | |
| RUN git clone https://github.com/comfyanonymous/ComfyUI.git . | |
| RUN pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu && \ | |
| pip install -r requirements.txt && \ | |
| pip install matplotlib | |
| RUN git clone https://github.com/kijai/ComfyUI-Florence2 custom_nodes/Florence2 | |
| RUN git clone https://github.com/rgthree/rgthree-comfy custom_nodes/rgthree | |
| RUN git clone https://github.com/ssitu/ComfyUI_UltimateSDUpscale custom_nodes/UltimateSDUpscale | |
| RUN mkdir -p /workspace/output /workspace/temp /workspace/database && \ | |
| chmod -R 777 /workspace && \ | |
| chmod -R 777 /workspace/custom_nodes/UltimateSDUpscale | |
| CMD python main.py --listen 0.0.0.0 --port 7860 --cpu --user-directory /workspace --output-directory /workspace/output --temp-directory /workspace/temp | |