#!/bin/bash # Run ComfyUI in the foreground from /workspace/ComfyUI. # v3: everything lives in /workspace, baked into the image. If a network # volume is mounted over /workspace (shadowing the baked-in files), the # missing pieces are restored from the seed at /opt/workspace-seed.tar.gz. set -e COMFY_PORT="${COMFY_PORT:-7865}" /usr/local/bin/seed-workspace.sh echo "Starting ComfyUI from /workspace/ComfyUI on port ${COMFY_PORT}" cd /workspace/ComfyUI exec python3 main.py --listen 0.0.0.0 --port "${COMFY_PORT}" "$@"