Skip to content

Commit 8257499

Browse files
d-csclaude
andauthored
fix(supervisor): copy retry-prisma-generate.mjs into the image build (#4157)
## What Adds the missing `COPY scripts/retry-prisma-generate.mjs` to the supervisor `Containerfile` builder stage, before `RUN pnpm run generate`. ## Why The `generate` scripts in `internal-packages/database` and `internal-packages/run-ops-database` shell out to `scripts/retry-prisma-generate.mjs`. The supervisor build never copied that file into the image, so `pnpm run generate` failed: ``` @internal/run-ops-database:generate: Error: Cannot find module '/app/scripts/retry-prisma-generate.mjs' ``` This is the same failure class as #4156 (webapp Dockerfile). The supervisor `Containerfile` is the **only other** build file that runs `pnpm run generate` — the coordinator / docker-provider / kubernetes-provider Containerfiles don't, so this completes the fix. ## Verification Local `docker build` of the supervisor `Containerfile` builder target — result appended below once the build completes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent b31ded7 commit 8257499

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/supervisor/Containerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ COPY --from=dev-deps --chown=node:node /app/ .
3434
COPY --chown=node:node turbo.json turbo.json
3535
COPY --chown=node:node .configs/tsconfig.base.json .configs/tsconfig.base.json
3636
COPY --chown=node:node scripts/updateVersion.ts scripts/updateVersion.ts
37+
COPY --chown=node:node scripts/retry-prisma-generate.mjs scripts/retry-prisma-generate.mjs
3738

3839
RUN pnpm run generate && \
3940
pnpm run --filter supervisor... build&& \

0 commit comments

Comments
 (0)