raubatz commited on
Commit
7b05cbe
·
verified ·
1 Parent(s): 0525b96

added custom node located on bucket

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -17
Dockerfile CHANGED
@@ -6,9 +6,6 @@ ENV DEBIAN_FRONTEND=noninteractive \
6
  ARG HF_TOKEN
7
  ENV HF_TOKEN=${HF_TOKEN}
8
 
9
- ARG GITHUB_TOKEN
10
- ENV GITHUB_TOKEN=${GITHUB_TOKEN}
11
-
12
  ARG USE_PERSISTENT_DATA=false
13
  ENV USE_PERSISTENT_DATA=${USE_PERSISTENT_DATA}
14
 
@@ -65,19 +62,15 @@ RUN rm -rf * && \
65
  git checkout 39e75862b248a20e8233ccee743ba5b2e977cdcf && \
66
  pip install xformers!=0.0.18 --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu121
67
 
68
- # Persistent custom nodes (using token if provided)
69
- RUN echo "Installing custom nodes into persistent location..." && \
70
- cd /data/ComfyUI/custom_nodes && \
71
- git config --global --add safe.directory /data/ComfyUI/custom_nodes && \
72
- git clone --depth 1 https://${GITHUB_TOKEN:+${GITHUB_TOKEN}@}github.com/ltdrdata/ComfyUI-Manager.git && \
73
- git clone --depth 1 https://${GITHUB_TOKEN:+${GITHUB_TOKEN}@}github.com/Fannovel16/comfy_controlnet_preprocessors && \
74
- git clone --depth 1 https://${GITHUB_TOKEN:+${GITHUB_TOKEN}@}github.com/Fannovel16/comfyui_controlnet_aux && \
75
- git clone --depth 1 https://${GITHUB_TOKEN:+${GITHUB_TOKEN}@}github.com/Stability-AI/stability-ComfyUI-nodes && \
76
- git clone --depth 1 https://${GITHUB_TOKEN:+${GITHUB_TOKEN}@}github.com/EllangoK/ComfyUI-post-processing-nodes && \
77
- echo "Custom nodes installed."
78
-
79
- # Run install scripts for custom nodes
80
- RUN cd /data/ComfyUI/custom_nodes/comfy_controlnet_preprocessors && python install.py --no_download_ckpts || true
81
  RUN cd /data/ComfyUI/custom_nodes/comfyui_controlnet_aux && pip install -r requirements.txt || true
82
  RUN cd /data/ComfyUI/custom_nodes/stability-ComfyUI-nodes && pip install -r requirements.txt || true
83
 
@@ -103,4 +96,4 @@ EOF
103
 
104
  RUN chmod +x /start.sh
105
 
106
- CMD ["/start.sh"]
 
6
  ARG HF_TOKEN
7
  ENV HF_TOKEN=${HF_TOKEN}
8
 
 
 
 
9
  ARG USE_PERSISTENT_DATA=false
10
  ENV USE_PERSISTENT_DATA=${USE_PERSISTENT_DATA}
11
 
 
62
  git checkout 39e75862b248a20e8233ccee743ba5b2e977cdcf && \
63
  pip install xformers!=0.0.18 --no-cache-dir -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu121
64
 
65
+ # Copy custom nodes from your public bucket
66
+ RUN echo "Copying custom nodes from public bucket..." && \
67
+ cp -r /datapublic/comfy/custom_nodes/ComfyUI-Manager-main /data/ComfyUI/custom_nodes/ComfyUI-Manager 2>/dev/null || true && \
68
+ cp -r /datapublic/comfy/custom_nodes/comfyui_controlnet_aux-main /data/ComfyUI/custom_nodes/comfyui_controlnet_aux 2>/dev/null || true && \
69
+ cp -r /datapublic/comfy/custom_nodes/stability-ComfyUI-nodes-master /data/ComfyUI/custom_nodes/stability-ComfyUI-nodes 2>/dev/null || true && \
70
+ cp -r /datapublic/comfy/custom_nodes/ComfyUI-post-processing-nodes-master /data/ComfyUI/custom_nodes/ComfyUI-post-processing-nodes 2>/dev/null || true && \
71
+ echo "Custom nodes copied from bucket."
72
+
73
+ # Run install scripts (if needed)
 
 
 
 
74
  RUN cd /data/ComfyUI/custom_nodes/comfyui_controlnet_aux && pip install -r requirements.txt || true
75
  RUN cd /data/ComfyUI/custom_nodes/stability-ComfyUI-nodes && pip install -r requirements.txt || true
76
 
 
96
 
97
  RUN chmod +x /start.sh
98
 
99
+ CMD ["/start.sh"]