v6: bake start_comfy + claude_start.sh into /workspace
Browse files- docker/Dockerfile +17 -4
docker/Dockerfile
CHANGED
|
@@ -6,9 +6,10 @@
|
|
| 6 |
# crane appends). This Dockerfile is the reproducible equivalent: building it
|
| 7 |
# on any machine with Docker produces the same setup.
|
| 8 |
#
|
| 9 |
-
# Build from the REPO ROOT (context needs download_missing_models.sh + workflows/
|
| 10 |
-
#
|
| 11 |
-
# docker
|
|
|
|
| 12 |
#
|
| 13 |
# No secrets are baked into this image (it is public). The model-download
|
| 14 |
# script prompts for your Hugging Face token at runtime (or reads $HF_TOKEN).
|
|
@@ -28,6 +29,11 @@
|
|
| 28 |
# HUGGING_FACE_ACCESS_TOKEN or HF_TOKEN if set; WORKSPACE_REFRESH=false
|
| 29 |
# disables). Also: interactive `claude` is aliased to
|
| 30 |
# `IS_SANDBOX=1 claude --dangerously-skip-permissions`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
FROM runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404
|
| 33 |
|
|
@@ -77,8 +83,15 @@ COPY download_missing_models.sh /workspace/download_missing_models.sh
|
|
| 77 |
RUN chmod +x /workspace/download_missing_models.sh && \
|
| 78 |
ln -sf /workspace/download_missing_models.sh /usr/local/bin/download_missing_models.sh
|
| 79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
# Seed tarball: restores /workspace when a network volume shadows it
|
| 81 |
-
RUN tar -czf /opt/workspace-seed.tar.gz -C /workspace ComfyUI workflows download_missing_models.sh
|
| 82 |
|
| 83 |
# Startup: seed /workspace if needed, refresh workflows + downloader from the
|
| 84 |
# HF repo (v5). ComfyUI does NOT auto-start (v4 default) — run `comfy`
|
|
|
|
| 6 |
# crane appends). This Dockerfile is the reproducible equivalent: building it
|
| 7 |
# on any machine with Docker produces the same setup.
|
| 8 |
#
|
| 9 |
+
# Build from the REPO ROOT (context needs download_missing_models.sh + workflows/
|
| 10 |
+
# + start_comfy + claude_start.sh):
|
| 11 |
+
# docker build -t plx1029/comfyui-qwen:v6 -f docker/Dockerfile .
|
| 12 |
+
# docker push plx1029/comfyui-qwen:v6
|
| 13 |
#
|
| 14 |
# No secrets are baked into this image (it is public). The model-download
|
| 15 |
# script prompts for your Hugging Face token at runtime (or reads $HF_TOKEN).
|
|
|
|
| 29 |
# HUGGING_FACE_ACCESS_TOKEN or HF_TOKEN if set; WORKSPACE_REFRESH=false
|
| 30 |
# disables). Also: interactive `claude` is aliased to
|
| 31 |
# `IS_SANDBOX=1 claude --dangerously-skip-permissions`.
|
| 32 |
+
#
|
| 33 |
+
# v6: two launcher scripts baked into /workspace and re-fetched from the HF
|
| 34 |
+
# repo at boot (via refresh-workspace.sh) — `start_comfy` (frees port 7865 then
|
| 35 |
+
# runs ComfyUI with the manager) and `claude_start.sh` (IS_SANDBOX=1 claude
|
| 36 |
+
# --dangerously-skip-permissions).
|
| 37 |
|
| 38 |
FROM runpod/pytorch:1.0.2-cu1281-torch280-ubuntu2404
|
| 39 |
|
|
|
|
| 83 |
RUN chmod +x /workspace/download_missing_models.sh && \
|
| 84 |
ln -sf /workspace/download_missing_models.sh /usr/local/bin/download_missing_models.sh
|
| 85 |
|
| 86 |
+
# v6: launcher scripts in /workspace. start_comfy kills whatever holds port
|
| 87 |
+
# 7865 then runs ComfyUI (--enable-manager); claude_start.sh launches Claude
|
| 88 |
+
# Code sandboxed. refresh-workspace.sh re-pulls both from the HF repo at boot.
|
| 89 |
+
COPY start_comfy /workspace/start_comfy
|
| 90 |
+
COPY claude_start.sh /workspace/claude_start.sh
|
| 91 |
+
RUN chmod +x /workspace/start_comfy /workspace/claude_start.sh
|
| 92 |
+
|
| 93 |
# Seed tarball: restores /workspace when a network volume shadows it
|
| 94 |
+
RUN tar -czf /opt/workspace-seed.tar.gz -C /workspace ComfyUI workflows download_missing_models.sh start_comfy claude_start.sh
|
| 95 |
|
| 96 |
# Startup: seed /workspace if needed, refresh workflows + downloader from the
|
| 97 |
# HF repo (v5). ComfyUI does NOT auto-start (v4 default) — run `comfy`
|