Files
darth-veitcher-comfydv/docker/Dockerfile
T
James VeitchandClaude Sonnet 4.6 01ba88c496 feat(002): add CPU-only Docker Compose test harness (T040-I, T041-I)
docker-compose.yml + docker/Dockerfile: python:3.11-slim base, ComfyUI
cloned at pinned tag, torch CPU wheel, comfydv mounted into custom_nodes/,
jinja2 installed via requirements.txt, port 8188 exposed. No GPU required.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 16:26:12 +01:00

38 lines
1.2 KiB
Docker

FROM python:3.11-slim
WORKDIR /app
# Install system deps needed by ComfyUI
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Clone ComfyUI (pinned tag for reproducibility; bump manually)
ARG COMFYUI_VERSION=v0.3.44
RUN git clone --depth 1 --branch ${COMFYUI_VERSION} \
https://github.com/comfyanonymous/ComfyUI.git /app/ComfyUI
WORKDIR /app/ComfyUI
# Install ComfyUI deps with CPU-only torch (no CUDA download)
RUN pip install --no-cache-dir \
torch torchvision torchaudio \
--index-url https://download.pytorch.org/whl/cpu && \
pip install --no-cache-dir -r requirements.txt
# Copy comfydv source into custom_nodes
COPY . /app/ComfyUI/custom_nodes/comfydv
# Install comfydv runtime deps
RUN pip install --no-cache-dir \
-r /app/ComfyUI/custom_nodes/comfydv/requirements.txt
EXPOSE 8188
HEALTHCHECK --interval=10s --timeout=5s --start-period=60s --retries=12 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8188/')"
CMD ["python", "main.py", "--cpu", "--listen", "0.0.0.0", "--port", "8188", "--quick-test-for-ci"]