mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-15 13:02:35 +08:00
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:
parent
03908b9b04
commit
2043b062a5
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user