fix(docker): copy packages/schemas/node_modules in builder stage
Local pnpm builds worked because all workspace packages had their node_modules populated by `pnpm install`. The Docker builder stage was only restoring `apps/web/node_modules` from the deps stage, leaving `packages/schemas/node_modules` empty — so `next build` couldn't resolve `zod` when transpiling the shared schemas package. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,7 @@ RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
|
||||
FROM base AS builder
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY --from=deps /app/apps/web/node_modules ./apps/web/node_modules
|
||||
COPY --from=deps /app/packages/schemas/node_modules ./packages/schemas/node_modules
|
||||
COPY . .
|
||||
|
||||
# Build the Next.js standalone bundle. Env validation is bypassed here so
|
||||
|
||||
Reference in New Issue
Block a user