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.
This commit is contained in:
clsferguson 2025-10-02 09:16:56 -06:00 committed by GitHub
parent 03908b9b04
commit 2043b062a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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