feat(dockerfile): add Cairo/pkg-config for pycairo and define COMFYUI path env vars

- Install pkg-config, libcairo2, and libcairo2-dev so pip can build/use pycairo required by svglib/rlPyCairo, preventing meson/pkg-config “Dependency cairo not found” errors on Debian/Ubuntu bases.
- Define COMFYUI_PATH=/app/ComfyUI and both COMFYUI_MODEL_PATH=/app/ComfyUI/models and COMFYUI_MODELS_PATH=/app/ComfyUI/models to satisfy common tool conventions and silence CLI warnings, while remaining compatible with extra_model_paths.yaml for canonical model routing.
This commit is contained in:
clsferguson 2025-09-30 11:29:25 -06:00 committed by GitHub
parent a632e1c5be
commit 08a12867d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,10 @@ ENV DEBIAN_FRONTEND=noninteractive \
EXT_PARALLEL=4 \
NVCC_APPEND_FLAGS="--threads 8" \
MAX_JOBS=32 \
SAGE_ATTENTION_AVAILABLE=0
SAGE_ATTENTION_AVAILABLE=0 \
COMFYUI_PATH=/app/ComfyUI \
COMFYUI_MODEL_PATH=/app/ComfyUI/models \
COMFYUI_MODELS_PATH=/app/ComfyUI/models
# Enable non-free repositories and install system deps + CUDA toolkit
RUN apt-get update && apt-get install -y --no-install-recommends \
@ -29,6 +32,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
ninja-build \
patch \
pkg-config \
libcairo2 \
libcairo2-dev \
&& echo "deb http://deb.debian.org/debian trixie main contrib non-free non-free-firmware" > /etc/apt/sources.list.d/non-free.list \
&& wget https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/cuda-keyring_1.1-1_all.deb \
&& dpkg -i cuda-keyring_1.1-1_all.deb \