File Dockerfile of Package comfyui

# Specify the license of the container build description (see also the LICENSE file)
#!BuildTag: opensuse/comfyui:latest 
#!BuildTag: opensuse/comfyui:0.3.66
#!BuildTag: opensuse/comfyui:0.3.66-1

FROM opensuse/tumbleweed

# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=org.opensuse.comfyui
LABEL org.opencontainers.image.title="comfyui container"
LABEL org.opencontainers.image.description="This contains comfyui 0.3.66"
LABEL org.opencontainers.image.version="0.3.66-1%"
LABEL org.opensuse.reference="registry.opensuse.org/opensuse/comfyui:0.3.66-1"
LABEL org.opencontainers.image.ref.name="comfyui_0_3_66-1"
LABEL org.opencontainers.image.url="https://github.com/comfyanonymous/ComfyUI"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opencontainers.image.created="%BUILDTIME%"
# endlabelprefix

# Fill the image with content and clean the cache(s)
RUN set -euo pipefail; \
    zypper --non-interactive in python312-pip python312 findutils curl ffmpeg && zypper clean -a

COPY ComfyUI-0.3.66.tar /tmp
COPY ComfyUI-Manager-3.35.tar /tmp

RUN python3.12 -m venv /home/python3.12-venv
ENV PATH /home/python3.12-venv/bin:$PATH
RUN pip3 install torch torchvision torchaudio opencv-python-headless "huggingface-hub>=0.34.0" matplotlib omegaconf peft nvidia-ml-py gguf aiohttp diffusers ffmpeg-python ftfy deepdiff accelerate piexif trimesh scikit-image py-cpuinfo onnx onnxruntime-gpu sageattention termcolor --extra-index-url https://download.pytorch.org/whl/nightly/cu128


RUN set -euo pipefail; \
    cd /tmp && tar xvf ComfyUI-0.3.66.tar \
    && mkdir -p /home/workspace \
    && mv ComfyUI-0.3.66 /home/workspace \
    && mv /home/workspace/ComfyUI-0.3.66 /home/workspace/ComfyUI \
    && cd /home/workspace/ComfyUI \
    && pip install -r requirements.txt

RUN set -euo pipefail; \
    cd /tmp && tar xvf ComfyUI-Manager-3.35.tar \
    && mv ComfyUI-Manager-3.35 /home/workspace \
    && mv /home/workspace/ComfyUI-Manager-3.35 /home/workspace/ComfyUI-Manager \
    && cd /home/workspace/ComfyUI-Manager \
    && pip install -r requirements.txt
openSUSE Build Service is sponsored by