File size: 523 Bytes
e174bd3
c332cc2
 
 
 
e174bd3
 
 
 
c332cc2
e174bd3
c332cc2
 
e174bd3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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}" "$@"