From d4cd53ad2b6ded190be1976345ba37b3e12fb27e Mon Sep 17 00:00:00 2001 From: jknapp Date: Fri, 15 May 2026 07:55:29 -0700 Subject: [PATCH] fix(docker): copy packages/schemas/node_modules in builder stage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- apps/web/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index afe63f0..6e5c31d 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -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