From 7795a4e86c641d288c723b017a9df32f6ab329d5 Mon Sep 17 00:00:00 2001 From: "B. Bergeron" Date: Sat, 10 Jan 2026 18:17:09 -0500 Subject: [PATCH] Improve documentation regarding pip install step --- Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 660d82f75..bc4be83dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,11 +47,15 @@ USER comfyui RUN python -m venv .venv ENV PATH="/comfyui/.venv/bin:$PATH" -# Install Python dependencies. This step is also performed automatically by the -# entrypoint script, but doing it at build time reduces startup time on the -# first run. -COPY requirements.txt ./ -RUN pip install --no-cache-dir -r requirements.txt +# Install ComfyUI's Python dependencies. Although dependency keeping is also +# performed at startup, building ComfyUI's base dependencies into the image +# significantly speeds up each containers' first run. +# +# Since this step takes a long time to complete, it's performed early to take +# advantage of Docker's build cache, thereby accelerating subsequent builds. +COPY requirements.txt manager_requirements.txt ./ +RUN pip install --no-cache-dir --disable-pip-version-check \ + -r requirements.txt # Install ComfyUI and link the data mount points. COPY . .