mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-15 21:12:30 +08:00
build: install PyAV 14+, add nvidia-ml-py, fix torch index
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.
This commit is contained in:
parent
87b73d7322
commit
db7f8730db
@ -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 . .
|
||||
|
||||
Loading…
Reference in New Issue
Block a user