Skip to content

Commit a39b601

Browse files
author
yinsu.zs
committed
revert(docker): 恢复从 /root/built-in/custom_nodes 拷贝内置插件
Agent 仍 COPY --from=comfyui_source /root/built-in/custom_nodes;ComfyUI 镜像恢复 cp 到 /root/built-in 的约定。此前误将源路径改为 comfyui/custom_nodes。 Change-Id: If08a22930a14ea1bdb84b1305a14e658f35c5494 Co-developed-by: Cursor <noreply@cursor.com>
1 parent 5f48641 commit a39b601

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/code/agent/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ RUN mkdir ~/.rembg && \
4545
cd ~/.rembg && \
4646
wget https://huggingface.co/tomjackson2023/rembg/resolve/main/u2net.onnx
4747

48-
#ComfyUI 镜像中已安装的 /root/comfyui/custom_nodes 拷贝到 agent 内置目录
49-
COPY --from=comfyui_source /root/comfyui/custom_nodes /root/built-in/custom_nodes
48+
# 从 comfyui 镜像拷贝内置插件到 built-in 目录
49+
COPY --from=comfyui_source /root/built-in/custom_nodes /root/built-in/custom_nodes
5050

5151
# 写入内置插件版本号,供启动时版本检查使用
5252
# 版本号需随内置插件列表的实质性变化(增删插件、升级版本)而更新

src/code/comfyui/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ COPY --from=dependencies ${VENV_DIR} ${VENV_DIR}
189189
COPY --from=codes ${COMFYUI_DIR} ${COMFYUI_DIR}
190190
COPY --from=agent ${AGENT_DIR} ${AGENT_DIR}
191191

192+
# 与 aliyunfc/funart-comfyui 约定一致:agent 镜像构建时会 COPY --from=COMFYUI_IMAGE /root/built-in/custom_nodes
193+
RUN mkdir -p /root/built-in && cp -a "${COMFYUI_DIR}/custom_nodes" /root/built-in/custom_nodes
194+
192195
ENV BACKEND_TYPE="comfyui"
193196

194197
RUN chmod +x ${AGENT_DIR}/entrypoint.bash

0 commit comments

Comments
 (0)