FROM nvidia/cuda:12.1.0-cudnn8-devel-ubuntu22.04 ENV DEBIAN_FRONTEND=noninteractive \ TZ=America/Los_Angeles ARG USE_PERSISTENT_DATA RUN apt-get update && apt-get install -y \ git libgl1 libglib2.0-0 \ make build-essential libssl-dev zlib1g-dev \ libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \ libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git git-lfs \ ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx \ && rm -rf /var/lib/apt/lists/* \ && git lfs install \ apt-get install nvidia-container-runtime WORKDIR /code # User RUN useradd -m -u 1000 user USER user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH # Pyenv RUN curl https://pyenv.run | bash ENV PATH=$HOME/.pyenv/shims:$HOME/.pyenv/bin:$PATH ARG PYTHON_VERSION=3.10.12 # Python RUN pyenv install $PYTHON_VERSION && \ pyenv global $PYTHON_VERSION && \ pyenv rehash && \ pip install --no-cache-dir --upgrade pip setuptools wheel && \ pip install --no-cache-dir \ datasets \ huggingface-hub "protobuf<4" "click<8.1" # PyTorch installation with CUDA 12.1 support # Set the working directory to /data if USE_PERSISTENT_DATA is set, otherwise set to $HOME/app WORKDIR $HOME/app COPY . . RUN git clone https://github.com/comfyanonymous/ComfyUI . && \pip install xformers!=0.0.24 --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu121 # instal custom nodes RUN echo "Installing custom nodes..." RUN pip install -U onnxruntime-gpu RUN cd custom_nodes && git clone https://github.com/ltdrdata/ComfyUI-Manager.git RUN cd custom_nodes && git clone https://github.com/balazik/ComfyUI-PuLID-Flux.git RUN cd custom_nodes && git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack && cd ComfyUI-Impact-Pack && python install.py RUN cd custom_nodes && git clone https://github.com/ltdrdata/ComfyUI-Inspire-Pack && cd ComfyUI-Inspire-Pack && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/Fannovel16/ComfyUI-Frame-Interpolation && cd ComfyUI-Frame-Interpolation && python install.py RUN cd custom_nodes && git clone https://github.com/Fannovel16/ComfyUI-Video-Matting && cd ComfyUI-Video-Matting && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/BlenderNeko/ComfyUI_Cutoff RUN cd custom_nodes && git clone https://github.com/WASasquatch/PPF_Noise_ComfyUI && cd PPF_Noise_ComfyUI && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/WASasquatch/PowerNoiseSuite && cd PowerNoiseSuite && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/Jordach/comfy-plasma RUN cd custom_nodes && git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes RUN cd custom_nodes && git clone https://github.com/space-nuko/ComfyUI-OpenPose-Editor RUN cd custom_nodes && git clone https://github.com/twri/sdxl_prompt_styler RUN cd custom_nodes && git clone https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved RUN cd custom_nodes && git clone https://github.com/AIrjen/OneButtonPrompt RUN cd custom_nodes && git clone https://github.com/WASasquatch/was-node-suite-comfyui && cd was-node-suite-comfyui && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/cubiq/ComfyUI_essentials RUN cd custom_nodes && git clone https://github.com/crystian/ComfyUI-Crystools && cd ComfyUI-Crystools && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/ssitu/ComfyUI_UltimateSDUpscale --recursive RUN cd custom_nodes && git clone https://github.com/gokayfem/ComfyUI_VLM_nodes && cd ComfyUI_VLM_nodes && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/Fannovel16/comfyui_controlnet_aux && cd comfyui_controlnet_aux && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/Stability-AI/stability-ComfyUI-nodes && cd stability-ComfyUI-nodes && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/jags111/efficiency-nodes-comfyui && cd efficiency-nodes-comfyui && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite && cd ComfyUI-VideoHelperSuite && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts RUN cd custom_nodes && git clone https://github.com/WASasquatch/FreeU_Advanced RUN cd custom_nodes && git clone https://github.com/city96/SD-Advanced-Noise RUN cd custom_nodes && git clone https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet RUN cd custom_nodes && git clone https://github.com/sipherxyz/comfyui-art-venture && cd comfyui-art-venture && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/evanspearman/ComfyMath && cd ComfyMath && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/GraftingRayman/Comfyui-reactor-node && cd Comfyui-reactor-node && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/rgthree/rgthree-comfy && cd rgthree-comfy && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/giriss/comfy-image-saver && cd comfy-image-saver && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/gokayfem/ComfyUI-Depth-Visualization && cd ComfyUI-Depth-Visualization && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/kohya-ss/ControlNet-LLLite-ComfyUI RUN cd custom_nodes && git clone https://github.com/gokayfem/ComfyUI-Dream-Interpreter && cd ComfyUI-Dream-Interpreter && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus RUN cd custom_nodes && git clone https://github.com/Acly/comfyui-inpaint-nodes RUN cd custom_nodes && git clone https://github.com/chflame163/ComfyUI_LayerStyle && cd ComfyUI_LayerStyle && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/omar92/ComfyUI-QualityOfLifeSuit_Omar92 RUN cd custom_nodes && git clone https://github.com/Derfuu/Derfuu_ComfyUI_ModdedNodes RUN cd custom_nodes && git clone https://github.com/EllangoK/ComfyUI-post-processing-nodes RUN cd custom_nodes && git clone https://github.com/jags111/ComfyUI_Jags_VectorMagic RUN cd custom_nodes && git clone https://github.com/melMass/comfy_mtb && cd comfy_mtb && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/AuroBit/ComfyUI-OOTDiffusion && cd ComfyUI-OOTDiffusion && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/kijai/ComfyUI-KJNodes && cd ComfyUI-KJNodes && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/kijai/ComfyUI-SUPIR && cd ComfyUI-SUPIR && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/kijai/ComfyUI-depth-fm && cd ComfyUI-depth-fm && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/viperyl/ComfyUI-BiRefNet && cd ComfyUI-BiRefNet && pip install -r requirements.txt RUN cd custom_nodes && git clone https://github.com/gokayfem/ComfyUI-Texture-Simple RUN cd custom_nodes && git clone https://github.com/ZHO-ZHO-ZHO/ComfyUI-APISR && cd ComfyUI-APISR && pip install -r requirements.txt CMD ["python", "app.py"]