Skip to content

Commit a5e9160

Browse files
d-csclaude
andcommitted
fix(supervisor): copy retry-prisma-generate.mjs into the image build
The database packages' `generate` scripts shell out to `scripts/retry-prisma-generate.mjs`, but the supervisor Containerfile never copied it into the builder stage, so `pnpm run generate` fails with `Cannot find module '/app/scripts/retry-prisma-generate.mjs'`. Same fix as #4156 (webapp Dockerfile); the supervisor Containerfile is the other build that runs `pnpm run generate`. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent b31ded7 commit a5e9160

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
area: supervisor
3+
type: fix
4+
---
5+
6+
Copy `scripts/retry-prisma-generate.mjs` into the supervisor image build before `pnpm run generate`. The database packages' `generate` scripts shell out to that file, so the supervisor `Containerfile` fails to build without it. Companion to the same fix in the webapp Dockerfile (#4156).

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)