From 2043b062a546be0408b3449c7a1573f9e42e0b3f Mon Sep 17 00:00:00 2001 From: clsferguson <48876201+clsferguson@users.noreply.github.com> Date: Thu, 2 Oct 2025 09:16:56 -0600 Subject: [PATCH] fix(dockerfile): disable ComfyUI-Manager uv usage to prevent --user errors Add a pre-configured config.ini for ComfyUI-Manager with use_uv = false to prevent uv from attempting --user installs which are unsupported. Since GitPython and toml are pre-installed system-wide, Manager will find them via import without needing to install, but setting use_uv = false ensures any remaining dependency installs use regular pip instead of uv's unsupported --user path. This eliminates the "No virtual environment found; run uv venv or pass --system" error while maintaining the "no venvs" constraint. --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8961b799f..5a049f793 100644 --- a/Dockerfile +++ b/Dockerfile @@ -102,11 +102,14 @@ RUN python -m pip install --upgrade pip setuptools wheel \ # Copy the application COPY . . -# Pre-bake ComfyUI-Manager to reduce runtime work (entrypoint will still update) +# Pre-bake ComfyUI-Manager and configure it to not use uv RUN mkdir -p /app/ComfyUI/custom_nodes \ && if [ ! -d "/app/ComfyUI/custom_nodes/ComfyUI-Manager" ]; then \ git clone --depth 1 https://github.com/ltdrdata/ComfyUI-Manager.git /app/ComfyUI/custom_nodes/ComfyUI-Manager || true; \ - fi + fi \ + && mkdir -p /app/ComfyUI/user/default/ComfyUI-Manager \ + && echo "[default]" > /app/ComfyUI/user/default/ComfyUI-Manager/config.ini \ + && echo "use_uv = false" >> /app/ComfyUI/user/default/ComfyUI-Manager/config.ini # Entrypoint COPY entrypoint.sh /entrypoint.sh