trunk image build red: appservice.Dockerfile misses COPY scripts/ before pnpm install (prepare hook MODULE_NOT_FOUND) #1451

Closed
opened 2026-08-27 11:08:04 +00:00 by fred · 1 comment
Collaborator

Trunk pipeline 2883 (next head 01904b8f) failed at build-appservice: root package.json prepare script runs node scripts/install-hooks.mjs, but docker/appservice.Dockerfile runs pnpm install --frozen-lockfile without COPY scripts/ ./scripts/ — Error: Cannot find module '/app/scripts/install-hooks.mjs'.

gateway.Dockerfile (line 14) and web.Dockerfile (line 12) both COPY scripts/ before install; appservice.Dockerfile is the one missed by 91e692e3 (break-C). Exposed now because the publish.yml image_build_when anchor change made appservice build on next pushes, and prior trunk push pipelines (2834/2854/2882) were killed before reaching this step — 2883 is the first terminal trunk run.

Not caused by the docs-only merges of #1437/#1440 in that head. Fix: one-line COPY scripts/ ./scripts/ before RUN pnpm install in docker/appservice.Dockerfile.

Trunk pipeline 2883 (next head 01904b8f) failed at build-appservice: root package.json prepare script runs node scripts/install-hooks.mjs, but docker/appservice.Dockerfile runs pnpm install --frozen-lockfile without COPY scripts/ ./scripts/ — Error: Cannot find module '/app/scripts/install-hooks.mjs'. gateway.Dockerfile (line 14) and web.Dockerfile (line 12) both COPY scripts/ before install; appservice.Dockerfile is the one missed by 91e692e3 (break-C). Exposed now because the publish.yml image_build_when anchor change made appservice build on next pushes, and prior trunk push pipelines (2834/2854/2882) were killed before reaching this step — 2883 is the first terminal trunk run. Not caused by the docs-only merges of #1437/#1440 in that head. Fix: one-line COPY scripts/ ./scripts/ before RUN pnpm install in docker/appservice.Dockerfile.
fred closed this issue 2026-08-27 11:28:48 +00:00
Author
Collaborator

Fixed by PR #1452, squash-merged to next as bf8bc212. Note: duplicate of #1446 (PR #1447 carried the identical fix but was CI-blocked by the zombie-pipeline outage). Trunk pipeline 2886 verifies build-appservice.

Fixed by PR #1452, squash-merged to next as bf8bc212. Note: duplicate of #1446 (PR #1447 carried the identical fix but was CI-blocked by the zombie-pipeline outage). Trunk pipeline 2886 verifies build-appservice.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#1451