From db7f8730dbb656b8244c86bc771f3b03a4c806d2 Mon Sep 17 00:00:00 2001 From: clsferguson <48876201+clsferguson@users.noreply.github.com> Date: Wed, 17 Sep 2025 12:09:26 -0600 Subject: [PATCH] build: install PyAV 14+, add nvidia-ml-py, fix torch index MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds av>=14.2 to satisfy Comfy’s API-node canary, ensuring video/audio nodes import without error, and uses the standard PyTorch CUDA 12.9 index URL syntax for reliability. It also installs nvidia-ml-py to align with the ecosystem shift away from deprecated pynvml, reducing future NVML warnings while preserving current functionality. The rest of the base remains unchanged, and existing ComfyUI requirements continue to install as before. --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7960ca64e..6b8e36da7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,15 +25,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ RUN groupadd --gid 1000 appuser \ && useradd --uid 1000 --gid 1000 --create-home --shell /bin/bash appuser -# Workdir (created automatically if missing) +# Workdir WORKDIR /app/ComfyUI # Leverage layer caching: install deps before copying full tree COPY requirements.txt ./ + +# Core Python deps (torch CUDA 12.9, ComfyUI reqs), media/NVML libs RUN python -m pip install --upgrade pip setuptools wheel \ && python -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu129 \ && python -m pip install -r requirements.txt \ - && python -m pip install imageio-ffmpeg + && python -m pip install imageio-ffmpeg "av>=14.2" nvidia-ml-py # Copy the application COPY . .