| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:cb9335ce6f27399c2b17787739d6675502767c53e0335ded2a5f0d003d996650 in / |
| CMD ["/bin/bash"] |
| RUN /bin/sh -c apt-get update && apt-get install -y curl gnupg && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb -o /tmp/cuda-keyring.deb && dpkg -i /tmp/cuda-keyring.deb && rm /tmp/cuda-keyring.deb && apt-get update # buildkit |
| RUN /bin/sh -c apt-get update && apt-get install -y python3.12-stdlib python3-pip libgl1 libglib2.0-0 libx11-6 git wget ffmpeg nvidia-cuda-toolkit cuda-libraries-dev-13-0 cuda-toolkit-13-0 && rm -rf /var/lib/apt/lists/* # buildkit |
| WORKDIR /app |
| RUN /bin/sh -c git clone https://github.com/comfyanonymous/ComfyUI.git # buildkit |
| WORKDIR /app/ComfyUI |
| RUN /bin/sh -c pip3 install --no-cache-dir --break-system-packages -r requirements.txt # buildkit |
| RUN /bin/sh -c pip3 install --no-cache-dir --break-system-packages gitpython toml lark deepdiff piexif opencv-python-headless diffusers accelerate clip_interrogator lark onnxruntime peft gguf packaging optimum torchaudio lycoris cryptography nvidia-vfx ftfy protobuf tokenizers pillow GitPython PyGithub matrix-nio huggingface-hub typer rich typing-extensions uv chardet uuid onnxruntime-gpu importlib_metadata filelock torchvision python-dateutil mediapipe fvcore yapf omegaconf addict trimesh albumentations onnxruntime-gpu torchdiffeq open_clip_torch bitsandbytes smplx hf-xet regex onnxruntime google-generativeai volcengine replicate fal-client yt_dlp rotary_embedding_torch lightning fast-simplification open3d gradio bottle tornado torchlanc cachetools webcolors segment_anything hydra-core iopath transforms3d llama-cpp-python dashscope scikit-image # buildkit |
| RUN /bin/sh -c pip3 install --no-cache-dir --break-system-packages comfy_env==0.3.89 comfy_sparse_attn blend_modes ultralytics numba jaxtyping pygit2 openai-whisper librosa imageio-ffmpeg kornia==0.7.4 sageattention py-cpuinfo decord dill onnx pycocotools # buildkit |
| RUN /bin/sh -c cd /app/ComfyUI/custom_nodes && for i in 1 2 3; do git clone https://github.com/IDEA-Research/GroundingDINO.git && break || sleep 5; done && cd /app/ComfyUI/custom_nodes/GroundingDINO && rm -f pyproject.toml && pip3 install --no-cache-dir --break-system-packages --no-deps . # buildkit |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends cuda-toolkit-13-0 && rm -rf /var/lib/apt/lists/* # buildkit |
| ENV CUDA_HOME=/usr/local/cuda-13.0 PATH=/usr/local/cuda-13.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c pip3 install --no-cache-dir --break-system-packages flash-attn --no-build-isolation # buildkit |
| RUN /bin/sh -c git clone https://github.com/facebookresearch/sam2.git /tmp/sam2 && pip3 install --no-cache-dir --no-deps --break-system-packages -e /tmp/sam2 # buildkit |
| RUN /bin/sh -c cd /tmp && git clone https://github.com/microsoft/MoGe.git && cd MoGe && git checkout 07444410f1e33f402353b99d6ccd26bd31e469e8 && pip3 install --no-cache-dir --break-system-packages -e . # buildkit |
| RUN /bin/sh -c cd /app/ComfyUI/custom_nodes && git clone https://github.com/ltdrdata/img2texture.git && cd img2texture && pip3 install --no-cache-dir --break-system-packages . # buildkit |
| RUN /bin/sh -c cd /app/ComfyUI/custom_nodes && git clone https://github.com/ltdrdata/cstr.git && cd cstr && pip3 install --no-cache-dir --break-system-packages . # buildkit |
| RUN /bin/sh -c cd /app/ComfyUI/custom_nodes && git clone https://github.com/ltdrdata/ffmpy.git && cd ffmpy && pip3 install --no-cache-dir --break-system-packages . # buildkit |
| RUN /bin/sh -c rm -rf /app/ComfyUI/custom_nodes/MMAudio && git clone https://github.com/kijai/ComfyUI-MMAudio.git /app/ComfyUI/custom_nodes/MMAudio # buildkit |
| RUN /bin/sh -c cd /app/ComfyUI/custom_nodes && for i in 1 2 3; do git clone https://github.com/niknah/ComfyUI-Hunyuan-3D-2.git && break || sleep 5; done # buildkit |
| RUN /bin/sh -c cd /app/ComfyUI/custom_nodes/ComfyUI-Hunyuan-3D-2 && for i in 1 2 3; do git submodule update --init --recursive && break || sleep 5; done # buildkit |
| COPY patch_hunyuan_pygit2.py /tmp/patch_hunyuan_pygit2.py # buildkit |
| RUN /bin/sh -c python3 /tmp/patch_hunyuan_pygit2.py && rm /tmp/patch_hunyuan_pygit2.py # buildkit |
| ENV TORCH_CUDA_ARCH_LIST=8.9 |
| RUN /bin/sh -c cd /app/ComfyUI/custom_nodes/ComfyUI-Hunyuan-3D-2/Hunyuan3D-2/hy3dgen/texgen/custom_rasterizer && python3 setup.py install # buildkit |
| RUN /bin/sh -c cd /app/ComfyUI/custom_nodes/ComfyUI-Hunyuan-3D-2/Hunyuan3D-2 && python3 setup.py install # buildkit |
| RUN /bin/sh -c pip3 install --no-cache-dir --break-system-packages pybind11 # buildkit |
| RUN /bin/sh -c cd /app/ComfyUI/custom_nodes/ComfyUI-Hunyuan-3D-2/Hunyuan3D-2/hy3dgen/texgen/differentiable_renderer && python3 setup.py build_ext --inplace # buildkit |
| RUN /bin/sh -c cd /app/ComfyUI/custom_nodes && for i in 1 2 3; do git clone https://github.com/Rizzlord/ComfyUI-Pixal3D-D.git && break || sleep 5; done # buildkit |
| RUN /bin/sh -c mv /app/ComfyUI/custom_nodes/ComfyUI-Pixal3D-D /app/ComfyUI/custom_nodes/ComfyUI-Pixal3D-D.disabled # buildkit |
| WORKDIR /app/ComfyUI/custom_nodes |
| RUN /bin/sh -c git clone https://github.com/DemonGatanjieu/Anomalous_Model_Browser.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/liusida/ComfyUI-AutoCropFaces.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/ssitu/ComfyUI_UltimateSDUpscale.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/1038lab/ComfyUI-RMBG.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/Gourieff/ComfyUI-ReActor.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/storyicon/comfyui_segment_anything.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/neverbiasu/ComfyUI-SAM2.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/Fannovel16/comfyui_controlnet_aux.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/cubiq/ComfyUI_essentials.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/crystian/ComfyUI-Crystools.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/capitan01R/ComfyUI-Flux2Klein-Enhancer.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/artokun/ComfyUI-Photoreal-Prompt-Builder.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/Aero-Ex/ComfyUI-SkinTokens.git # buildkit |
| COPY patch_skintokens_resolver.py /tmp/patch_skintokens_resolver.py # buildkit |
| RUN /bin/sh -c python3 /tmp/patch_skintokens_resolver.py && rm /tmp/patch_skintokens_resolver.py # buildkit |
| RUN /bin/sh -c git clone https://github.com/liconstudio/ComfyUI-Licon-MSR.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/o-l-l-i/ComfyUI-Olm-DragCrop.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/cseti007/ComfyUI-CrossViewWarp.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/scraed/LanPaint.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/kijai/ComfyUI-WanVideoWrapper.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/Lightricks/ComfyUI-LTXVideo.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/Fannovel16/ComfyUI-Frame-Interpolation.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/vrgamegirl19/comfyui-vrgamedevgirl.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/Aero-Ex/ComfyUI-HyMotion.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/kijai/ComfyUI-MelBandRoFormer.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/yuvraj108c/ComfyUI-Whisper.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/xmarre/ComfyUI-Spectrum-MiniMax-H3.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/Saganaki22/Pixal3D-ComfyUI.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/PozzettiAndrea/ComfyUI-GeometryPack.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/PozzettiAndrea/ComfyUI-TRELLIS2.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/hinablue/ComfyUI_3dPoseEditor.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/kijai/ComfyUI-Florence2.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/jtydhr88/ComfyUI-qwenmultiangle.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/kantan-kanto/ComfyUI-MultiModal-Prompt-Nodes.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/kijai/ComfyUI-PromptRelay.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/LeonQ8/ComfyUI-Dynamic-Lora-Scheduler.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/TripleHeadedMonkey/ComfyUI-Zlycoris.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/ltdrdata/was-node-suite-comfyui.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/ltdrdata/ComfyUI-Inspire-Pack.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/ltdrdata/ComfyUI-Impact-Subpack.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/DoctorDiffusion/ComfyUI-MediaMixer.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/city96/ComfyUI-GGUF.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/calcuis/gguf.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/kael558/ComfyUI-GGUF-FantasyTalking.git # buildkit |
| COPY patch_gguf_fantasytalking.py /tmp/patch_gguf_fantasytalking.py # buildkit |
| RUN /bin/sh -c python3 /tmp/patch_gguf_fantasytalking.py && rm /tmp/patch_gguf_fantasytalking.py # buildkit |
| RUN /bin/sh -c git clone https://github.com/Comfy-Org/ComfyUI-Manager.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/chrisgoringe/cg-use-everywhere.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/rgthree/rgthree-comfy.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/Jonseed/ComfyUI-Detail-Daemon.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/alexopus/ComfyUI-Image-Saver.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/jamesWalker55/comfyui-various.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/hashu786/comfyui-hrnodes.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/chflame163/ComfyUI_LayerStyle.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/jakechai/ComfyUI-JakeUpgrade.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/Smirnov75/ComfyUI-mxToolkit.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/Comfy-Org/Nvidia_RTX_Nodes_ComfyUI.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/LAOGOU-666/Comfyui-Memory_Cleanup.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/theUpsider/ComfyUI-Logic.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/zhangp365/ComfyUI-utils-nodes.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/ChangeTheConstants/SeedVarianceEnhancer.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/Artificial-Sweetener/comfyui-WhiteRabbit.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/wallish77/wlsh_nodes.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/WhatDreamsCost/WhatDreamsCost-ComfyUI.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/melMass/comfy_mtb.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/evanspearman/ComfyMath.git # buildkit |
| RUN /bin/sh -c git clone https://github.com/yolain/ComfyUI-Easy-Use.git # buildkit |
| RUN /bin/sh -c pip3 install --no-cache-dir --break-system-packages typeguard # buildkit |
| RUN /bin/sh -c pip3 install --no-cache-dir --break-system-packages easydict # buildkit |
| RUN /bin/sh -c rm -rf /app/ComfyUI/custom_nodes/GroundingDINO /app/ComfyUI/custom_nodes/img2texture /app/ComfyUI/custom_nodes/cstr /app/ComfyUI/custom_nodes/ffmpy # buildkit |
| RUN /bin/sh -c pip3 install --no-cache-dir --break-system-packages easydict # buildkit |
| RUN /bin/sh -c git clone https://github.com/kijai/ComfyUI-KJNodes.git # buildkit |
| RUN /bin/sh -c pip3 install --no-cache-dir --break-system-packages color-matcher matplotlib mss opencv-python-headless # buildkit |
| ENV TORCH_CUDA_ARCH_LIST=8.9 MAX_JOBS=8 |
| RUN /bin/sh -c pip3 install --no-cache-dir --break-system-packages --force-reinstall 'setuptools<81' # buildkit |
| RUN /bin/sh -c mkdir -p /root/pixal3d-build && cd /root/pixal3d-build && for i in 1 2 3; do git clone --recursive https://github.com/JeffreyXiang/FlexGEMM.git FlexGEMM && break || sleep 5; done && pip3 install --no-cache-dir --no-deps --no-build-isolation --break-system-packages /root/pixal3d-build/FlexGEMM && rm -rf /root/pixal3d-build/FlexGEMM # buildkit |
| RUN /bin/sh -c cd /root/pixal3d-build && for i in 1 2 3; do git clone --recursive https://github.com/JeffreyXiang/CuMesh.git CuMesh && break || sleep 5; done && pip3 install --no-cache-dir --no-deps --no-build-isolation --break-system-packages /root/pixal3d-build/CuMesh && rm -rf /root/pixal3d-build/CuMesh # buildkit |
| RUN /bin/sh -c cd /root/pixal3d-build && for i in 1 2 3; do git clone --depth=1 https://github.com/microsoft/TRELLIS.2.git TRELLIS.2 && break || sleep 5; done && cd TRELLIS.2 && git submodule update --init --recursive && cd .. && pip3 install --no-cache-dir --no-deps --no-build-isolation --break-system-packages /root/pixal3d-build/TRELLIS.2/o-voxel && pip3 install --no-cache-dir --no-deps --break-system-packages zstandard plyfile && rm -rf /root/pixal3d-build/TRELLIS.2 # buildkit |
| RUN /bin/sh -c cd /root/pixal3d-build && for i in 1 2 3; do git clone -b v0.4.0 https://github.com/NVlabs/nvdiffrast.git nvdiffrast && break || sleep 5; done && pip3 install --no-cache-dir --no-deps --no-build-isolation --break-system-packages /root/pixal3d-build/nvdiffrast && rm -rf /root/pixal3d-build/nvdiffrast # buildkit |
| RUN /bin/sh -c pip3 install --no-cache-dir --no-deps --no-build-isolation --break-system-packages "git+https://github.com/facebookresearch/DRTK.git@stable" && rmdir /root/pixal3d-build 2>/dev/null || true # buildkit |
| WORKDIR /app/ComfyUI |
| CMD ["python3" "main.py" "--listen" "0.0.0.0"] |