mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-04 06:12:31 +08:00
feat(dockerfile): enable PEP 517 globally and preinstall Manager deps
Set PIP_USE_PEP517=1 so all builds use the standardized PEP 517 interface, suppressing legacy setup.py deprecation warnings during image build and runtime installs. Keep CUDA 12.9 toolchain and bake GitPython/toml to satisfy ComfyUI-Manager’s import checks without uv or venvs.
This commit is contained in:
parent
497dfe8199
commit
01590a160f
@ -8,6 +8,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
|
|||||||
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
||||||
PIP_NO_CACHE_DIR=1 \
|
PIP_NO_CACHE_DIR=1 \
|
||||||
PIP_BREAK_SYSTEM_PACKAGES=1 \
|
PIP_BREAK_SYSTEM_PACKAGES=1 \
|
||||||
|
PIP_USE_PEP517=1 \
|
||||||
EXT_PARALLEL=4 \
|
EXT_PARALLEL=4 \
|
||||||
NVCC_APPEND_FLAGS="--threads 8" \
|
NVCC_APPEND_FLAGS="--threads 8" \
|
||||||
MAX_JOBS=32 \
|
MAX_JOBS=32 \
|
||||||
@ -99,14 +100,11 @@ RUN python -m pip install --upgrade pip setuptools wheel \
|
|||||||
# Copy the application
|
# Copy the application
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Pre-bake ComfyUI-Manager and configure it to not use uv
|
# Pre-bake ComfyUI-Manager
|
||||||
RUN mkdir -p /app/ComfyUI/custom_nodes \
|
RUN mkdir -p /app/ComfyUI/custom_nodes \
|
||||||
&& if [ ! -d "/app/ComfyUI/custom_nodes/ComfyUI-Manager" ]; then \
|
&& 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; \
|
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
|
# Entrypoint
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user