- Geneva
- https://qbuissondebon.eu.org
- Joined on
2020-07-09
Block a user
comfyui (latest)
Published 2026-04-13 17:46:14 +02:00 by qbuissondebon
Installation
docker pull git.qbuissondebon.eu.org/qbuissondebon/comfyui:latestsha256:d9aba473acfcf72dd19ebb02225ab7a17075be7e0255812a148bfa02adedfff7
Image Layers
| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:3f78aa860931e0853077f09eb31eddbeeef8a9dd70977305b4876aa176770721 in / |
| CMD ["/bin/bash"] |
| ARG PYTORCH_VERSION=2.11.0 |
| ARG TRITON_VERSION= |
| ARG TARGETPLATFORM=linux/amd64 |
| ARG CUDA_VERSION=12.8.1 |
| LABEL com.nvidia.volumes.needed=nvidia_driver |
| RUN |4 PYTORCH_VERSION=2.11.0 TRITON_VERSION= TARGETPLATFORM=linux/amd64 CUDA_VERSION=12.8.1 /bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates libjpeg-dev libpng-dev python-is-python3 python3 python3-dev python3-pip && rm -rf /var/lib/apt/lists/* # buildkit |
| COPY /usr/local/lib/python3.12 /usr/local/lib/python3.12 # buildkit |
| COPY /usr/local/bin /usr/local/bin # buildkit |
| RUN |4 PYTORCH_VERSION=2.11.0 TRITON_VERSION= TARGETPLATFORM=linux/amd64 CUDA_VERSION=12.8.1 /bin/sh -c if test -n "${CUDA_VERSION}" -a "${TARGETPLATFORM}" != "linux/arm64"; then apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gcc && rm -rf /var/lib/apt/lists/*; fi # buildkit |
| ENV NVIDIA_VISIBLE_DEVICES=all |
| ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility |
| ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64 |
| ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV PYTORCH_VERSION=2.11.0 |
| WORKDIR /workspace |
| ARG CUDA_VERSION=12.8.1 |
| ARG BUILD_TYPE=dev |
| RUN |5 PYTORCH_VERSION=2.11.0 TRITON_VERSION= TARGETPLATFORM=linux/amd64 CUDA_VERSION=12.8.1 BUILD_TYPE=dev /bin/sh -c if [ "${BUILD_TYPE}" = "dev" ] && [ -n "${CUDA_VERSION}" ]; then apt-get update && apt-get install -y --no-install-recommends wget gnupg2 ca-certificates && NVARCH=$(uname -m | sed 's/x86_64/x86_64/' | sed 's/aarch64/sbsa/') && wget -qO - https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/${NVARCH}/3bf863cc.pub | apt-key add - && echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/${NVARCH} /" > /etc/apt/sources.list.d/cuda.list && CUDA_PKG_VERSION=$(echo ${CUDA_VERSION} | cut -d'.' -f1,2 | tr '.' '-') && apt-get update && apt-get install -y --no-install-recommends cuda-toolkit-${CUDA_PKG_VERSION} && apt-get clean && rm -rf /var/lib/apt/lists/* && echo "/usr/local/cuda/lib64" >> /etc/ld.so.conf.d/cuda.conf && ldconfig; fi # buildkit |
| ENV PATH=/usr/local/cuda/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64 |
| ENV CUDA_HOME=/usr/local/cuda |
| COPY /usr/local/lib/python3.12 /usr/local/lib/python3.12 # buildkit |
| COPY /usr/local/bin /usr/local/bin # buildkit |
| COPY /opt/pytorch /opt/pytorch # buildkit |
| ARG COMFYUI_VERSION=0.17.2 |
| ARG COMFYUI_MANAGER_VERSION=3.39.3 |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c apt update -y && apt install -y git sudo curl wget libgl1 libglib2.0-0 gcc g++ make build-essential ffmpeg espeak-ng && curl -fsSL https://deb.nodesource.com/setup_22.x | sudo bash - && apt install -y nodejs && apt clean && apt autoclean && rm -rf /var/cache/apt/archives /var/lib/apt/lists/* # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c pip install --root-user-action=ignore --no-cache-dir --break-system-packages --no-build-isolation hatchling setuptools wheel editables # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c git clone https://github.com/Comfy-Org/ComfyUI.git /opt/comfyui && cd /opt/comfyui && git checkout "v${COMFYUI_VERSION}" # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c git clone https://github.com/Comfy-Org/ComfyUI-Manager.git /opt/comfyui-manager && cd /opt/comfyui-manager && git checkout ${COMFYUI_MANAGER_VERSION} # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c pip install --root-user-action=ignore --break-system-packages --requirement /opt/comfyui/requirements.txt --requirement /opt/comfyui-manager/requirements.txt # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c mkdir -p /opt/comfyui/user/__manager && echo "[default]" > /opt/comfyui/user/__manager/config.ini && echo "security_level = weak" >> /opt/comfyui/user/__manager/config.ini # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c pip install --root-user-action=ignore --no-cache-dir --break-system-packages "numpy<2" # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c echo "[global]" > /etc/pip.conf && echo "constraint = /usr/local/pip-constraints.txt" >> /etc/pip.conf && printf "numpy<2\ntransformers<5\n" > /usr/local/pip-constraints.txt # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c chmod -R o+w /usr/local/lib/python3.12/dist-packages # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c chmod -R o+w "$(python -c 'import site; print(site.getsitepackages()[0])')" # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c chmod -R o+w /usr/local/bin # buildkit |
| ENV PIP_USER=0 |
| ENV PIP_CONSTRAINT=/usr/local/pip-constraints.txt |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c pip install --root-user-action=ignore --no-cache-dir --break-system-packages --no-build-isolation scikit-build-core cmake ninja # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c pip install --root-user-action=ignore --no-cache-dir --break-system-packages --no-build-isolation sageattention accelerate llama-cpp-python # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c pip install --root-user-action=ignore --no-cache-dir --break-system-packages --no-build-isolation gguf blend-modes translators dghs-imgutils[gpu] echo-tts # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c pip install --root-user-action=ignore --no-cache-dir --break-system-packages spacy && PIP_BREAK_SYSTEM_PACKAGES=1 python3 -m spacy download en_core_web_sm # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c pip install --root-user-action=ignore --no-cache-dir --break-system-packages matplotlib scipy scikit-image scikit-learn opencv-contrib-python pymatting segment-anything timm addict yapf colour-science wget mediapipe loguru typer-config fastapi rich google-generativeai diffusers omegaconf tqdm kornia "ultralytics>=8.2.0" blend-modes blind-watermark qrcode pyzbar transparent-background "huggingface_hub>=0.23.4" "accelerate>=0.26.0" onnxruntime torchscale wandb psd-tools hydra-core "protobuf>=3.20.3" "bitsandbytes>=0.41.1" "transformers>=4.43.2,<5" "peft>=0.12.0" iopath # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c pip install --root-user-action=ignore --no-cache-dir --break-system-packages "inference-cli>=0.13.0" "inference-gpu[yolo-world]>=0.13.0" || echo "WARNING: inference packages failed to install, skipping" # buildkit |
| RUN |2 COMFYUI_VERSION=0.17.2 COMFYUI_MANAGER_VERSION=3.39.3 /bin/sh -c git clone --depth=1 https://github.com/hkchengrex/MMAudio.git /temp/MMAudio && cd /temp/MMAudio && pip install --root-user-action=ignore --no-cache-dir --break-system-packages --no-build-isolation -e . # buildkit |
| WORKDIR /opt/comfyui |
| EXPOSE [8188/tcp] |
| ADD entrypoint.sh /entrypoint.sh # buildkit |
| ENTRYPOINT ["/bin/bash" "/entrypoint.sh"] |
Labels
| Key | Value |
|---|---|
| com.nvidia.volumes.needed | nvidia_driver |
| org.opencontainers.image.ref.name | ubuntu |
| org.opencontainers.image.version | 24.04 |