ComfyUI / docker /comfy
aleph65's picture
docker v3: bake everything into /workspace (ComfyUI, workflows, download_missing_models.sh) + auto-start ComfyUI
c332cc2 verified
Raw
History Blame Contribute Delete
523 Bytes
#!/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}" "$@"