Skip to content

fix(compose): model-init image builds again — scripts context → tools/scripts, models via additional-context (item 2) - #1851

Merged
joelteply merged 1 commit into
canaryfrom
fix/model-init-context-tools-scripts
Jul 6, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/model-init-context-tools-scripts

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Caught by an actual docker build (not a guess): model-init's download scripts moved to tools/scripts with
#1840, but the Dockerfile still COPYd them from the context root (which #1849 had pointed at legacy/src) —
so COPY scripts/download-models.sh etc failed "not found". models.json is in legacy/src/shared; the scripts
in tools/scripts; two homes, no single small context covers both (and there's no .dockerignore, so a repo-
root context would ship the whole tree).

  • docker-compose.yml: model-init context → ./tools/scripts (scripts' home); models.json rides in as the
    models additional-context (./legacy/src/shared).
  • model-init.Dockerfile: COPY the scripts from the context root, COPY --from=models models.json, keep
    shared/ (download-avatar-models.sh sources shared/preflight.sh at runtime); DROP the dead
    generate-scene-models.ts + package.json COPYs (unused by the download CMD path).

Build-proven on macOS (docker build — node:20-slim native arm64): all COPYs resolve, image exports clean.
The model download is a runtime CMD, so the actual fetch is exercised by a real up (item 3). compose config
green base/+gpu. Reliability spine #1 — both container BUILD-side items (core image #1850, model-init) now
build-verified from this Mac; only GPU up / grid / fresh-OS install remain (genuinely Linux).

Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…/scripts, models via additional-context (item 2)

Caught by an actual `docker build` (not a guess): model-init's download scripts moved to tools/scripts with
#1840, but the Dockerfile still COPYd them from the context root (which #1849 had pointed at legacy/src) —
so `COPY scripts/download-models.sh` etc failed "not found". models.json is in legacy/src/shared; the scripts
in tools/scripts; two homes, no single small context covers both (and there's no .dockerignore, so a repo-
root context would ship the whole tree).

- docker-compose.yml: model-init context → ./tools/scripts (scripts' home); models.json rides in as the
  `models` additional-context (./legacy/src/shared).
- model-init.Dockerfile: COPY the scripts from the context root, `COPY --from=models models.json`, keep
  shared/ (download-avatar-models.sh sources shared/preflight.sh at runtime); DROP the dead
  generate-scene-models.ts + package.json COPYs (unused by the download CMD path).

Build-proven on macOS (`docker build` — node:20-slim native arm64): all COPYs resolve, image exports clean.
The model download is a runtime CMD, so the actual fetch is exercised by a real `up` (item 3). compose config
green base/+gpu. Reliability spine #1 — both container BUILD-side items (core image #1850, model-init) now
build-verified from this Mac; only GPU `up` / grid / fresh-OS install remain (genuinely Linux).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 1acabad into canary Jul 6, 2026
@joelteply
joelteply deleted the fix/model-init-context-tools-scripts branch July 6, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant