From 9c95445229c8bff13788ea1a79dd1517ba1d2e7a Mon Sep 17 00:00:00 2001 From: Bauke Molenaar Date: Mon, 6 Oct 2025 10:57:35 +0200 Subject: [PATCH 1/5] modified: services/comfy/Dockerfile --- services/comfy/Dockerfile | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/services/comfy/Dockerfile b/services/comfy/Dockerfile index 2de504d..9c7030b 100644 --- a/services/comfy/Dockerfile +++ b/services/comfy/Dockerfile @@ -2,21 +2,35 @@ FROM pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1 -RUN apt-get update && apt-get install -y git && apt-get clean +RUN apt-get update && apt-get install -y git && \ + apt --fix-broken install -y && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* ENV ROOT=/stable-diffusion + +WORKDIR /stable-diffusion RUN --mount=type=cache,target=/root/.cache/pip \ - git clone https://github.com/comfyanonymous/ComfyUI.git ${ROOT} && \ - cd ${ROOT} && \ - git checkout master && \ - git reset --hard 276f8fce9f5a80b500947fb5745a4dde9e84622d && \ - pip install -r requirements.txt + git clone https://github.com/comfyanonymous/ComfyUI.git ${ROOT} && \ + cd ${ROOT} && \ + git checkout master && \ + pip install -r requirements.txt + +WORKDIR /stable-diffusion/stable-diffusion +RUN git clone https://github.com/ltdrdata/ComfyUI-Manager.git && \ + git checkout master && \ + pip install -r requirements.txt WORKDIR ${ROOT} COPY . /docker/ RUN chmod u+x /docker/entrypoint.sh && cp /docker/extra_model_paths.yaml ${ROOT} -ENV NVIDIA_VISIBLE_DEVICES=all PYTHONPATH="${PYTHONPATH}:${PWD}" CLI_ARGS="" +ENV NVIDIA_VISIBLE_DEVICES=all +ENV PYTHONPATH="${PYTHONPATH}:${PWD}" +ENV CLI_ARGS="" + EXPOSE 7860 + ENTRYPOINT ["/docker/entrypoint.sh"] -CMD python -u main.py --listen --port 7860 ${CLI_ARGS} + +CMD ["python", "-u", "main.py", "--listen", "--port", "7860", "${CLI_ARGS}"] From 4353d093f3eb9982e408c1e14535f16c14294172 Mon Sep 17 00:00:00 2001 From: Bauke Molenaar Date: Mon, 6 Oct 2025 11:10:18 +0200 Subject: [PATCH 2/5] modified: services/comfy/Dockerfile --- services/comfy/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/comfy/Dockerfile b/services/comfy/Dockerfile index 9c7030b..a000e70 100644 --- a/services/comfy/Dockerfile +++ b/services/comfy/Dockerfile @@ -16,8 +16,9 @@ RUN --mount=type=cache,target=/root/.cache/pip \ git checkout master && \ pip install -r requirements.txt -WORKDIR /stable-diffusion/stable-diffusion +WORKDIR /stable-diffusion/custom_nodes RUN git clone https://github.com/ltdrdata/ComfyUI-Manager.git && \ + cd ComfyUI-Manager && \ git checkout master && \ pip install -r requirements.txt From f048579dd6c533da796e714111b15091fb0475d9 Mon Sep 17 00:00:00 2001 From: Bauke Molenaar Date: Mon, 6 Oct 2025 11:23:17 +0200 Subject: [PATCH 3/5] modified: services/comfy/Dockerfile --- services/comfy/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/comfy/Dockerfile b/services/comfy/Dockerfile index a000e70..7413c87 100644 --- a/services/comfy/Dockerfile +++ b/services/comfy/Dockerfile @@ -1,6 +1,7 @@ FROM pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime -ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1 +ENV DEBIAN_FRONTEND=noninteractive +ENV PIP_PREFER_BINARY=1 RUN apt-get update && apt-get install -y git && \ apt --fix-broken install -y && \ @@ -17,7 +18,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \ pip install -r requirements.txt WORKDIR /stable-diffusion/custom_nodes -RUN git clone https://github.com/ltdrdata/ComfyUI-Manager.git && \ +RUN git clone https://github.com/Comfy-Org/ComfyUI-Manager.git && \ cd ComfyUI-Manager && \ git checkout master && \ pip install -r requirements.txt From 8b666df8e31ee2ad73752921c0a466e04aa52201 Mon Sep 17 00:00:00 2001 From: Bauke Molenaar Date: Mon, 6 Oct 2025 11:24:20 +0200 Subject: [PATCH 4/5] modified: services/comfy/Dockerfile --- services/comfy/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/comfy/Dockerfile b/services/comfy/Dockerfile index 7413c87..c5c9973 100644 --- a/services/comfy/Dockerfile +++ b/services/comfy/Dockerfile @@ -14,13 +14,13 @@ WORKDIR /stable-diffusion RUN --mount=type=cache,target=/root/.cache/pip \ git clone https://github.com/comfyanonymous/ComfyUI.git ${ROOT} && \ cd ${ROOT} && \ - git checkout master && \ + # git checkout master && \ pip install -r requirements.txt WORKDIR /stable-diffusion/custom_nodes RUN git clone https://github.com/Comfy-Org/ComfyUI-Manager.git && \ cd ComfyUI-Manager && \ - git checkout master && \ + # git checkout master && \ pip install -r requirements.txt WORKDIR ${ROOT} From 823194ee07aecb8fad7217995233986f70ca94df Mon Sep 17 00:00:00 2001 From: Bauke Molenaar Date: Mon, 6 Oct 2025 11:57:57 +0200 Subject: [PATCH 5/5] modified: services/comfy/Dockerfile --- services/comfy/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/comfy/Dockerfile b/services/comfy/Dockerfile index c5c9973..aa73aa1 100644 --- a/services/comfy/Dockerfile +++ b/services/comfy/Dockerfile @@ -29,10 +29,11 @@ RUN chmod u+x /docker/entrypoint.sh && cp /docker/extra_model_paths.yaml ${ROOT} ENV NVIDIA_VISIBLE_DEVICES=all ENV PYTHONPATH="${PYTHONPATH}:${PWD}" -ENV CLI_ARGS="" +ENV CLI_ARGS="--listen 0.0.0.0 --port 7860" EXPOSE 7860 ENTRYPOINT ["/docker/entrypoint.sh"] -CMD ["python", "-u", "main.py", "--listen", "--port", "7860", "${CLI_ARGS}"] +# CMD ["python", "-u", "main.py", "--listen", "--port", "7860", "${CLI_ARGS}"] +CMD ["python", "-u", "main.py", "--listen", "0.0.0.0", "--port", "7860"] \ No newline at end of file