FROM python:3.11-slim WORKDIR /workspace # Install system deps RUN apt-get update && apt-get install -y --no-install-recommends \ git curl \ && rm -rf /var/lib/apt/lists/* # Clone ComfyUI RUN git clone https://github.com/comfyanonymous/ComfyUI.git /workspace/ComfyUI WORKDIR /workspace/ComfyUI # Python venv + deps (CPU-only, generation goes through BoosAPI) RUN python3 -m venv venv && \ . venv/bin/activate && \ pip install --upgrade pip && \ pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu && \ grep -v kornia_rs requirements.txt | pip install -r /dev/stdin && \ rm -rf ~/.cache/pip ENV PATH="/workspace/ComfyUI/venv/bin:${PATH}" EXPOSE 8188 CMD ["python3", "main.py", "--listen", "0.0.0.0", "--port", "8188", "--cpu"]