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