Improve documentation regarding pip install step

This commit is contained in:
B. Bergeron 2026-01-10 18:17:09 -05:00
parent c4c388ffc8
commit 7795a4e86c
No known key found for this signature in database
GPG Key ID: 20A0A88F22238925

View File

@ -47,11 +47,15 @@ USER comfyui
RUN python -m venv .venv RUN python -m venv .venv
ENV PATH="/comfyui/.venv/bin:$PATH" ENV PATH="/comfyui/.venv/bin:$PATH"
# Install Python dependencies. This step is also performed automatically by the # Install ComfyUI's Python dependencies. Although dependency keeping is also
# entrypoint script, but doing it at build time reduces startup time on the # performed at startup, building ComfyUI's base dependencies into the image
# first run. # significantly speeds up each containers' first run.
COPY requirements.txt ./ #
RUN pip install --no-cache-dir -r requirements.txt # 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. # Install ComfyUI and link the data mount points.
COPY . . COPY . .