fix(web): install production deps in runtime stage for SvelteKit
Author: Aaron Steven White
Commit
75f6e96a41449ac7f56433d26cb31568dacecfe6Parent: 036e6dd6ad
Structural diff unavailable
These commits were pushed via plain git push, so no pre-parsed
schemas are available. Install git-remote-cospan and re-push via panproto:// to
see scope-level changes, breaking change detection, and semantic diffs.
brew install panproto/tap/git-remote-cospan1 file changed +7 -3
@@ -12,15 +12,19 @@ COPY packages/ packages/
1212 RUN cd apps/web && pnpm install --no-frozen-lockfile 1313 RUN cd apps/web && pnpm build 1414 15-# Stage 2: Runtime 15+# Stage 2: Runtime - install production deps fresh 1616 FROM node:22-slim 1717 1818 WORKDIR /app 1919 20-# Copy the built output and all node_modules (SvelteKit needs them at runtime) 20+RUN corepack enable 21+ 22+# Copy built output 2123 COPY --from=builder /app/apps/web/build ./build 2224 COPY --from=builder /app/apps/web/package.json . 23-COPY --from=builder /app/apps/web/node_modules ./node_modules 25+ 26+# Install production dependencies only (includes @sveltejs/kit needed at runtime) 27+RUN pnpm install --prod --no-frozen-lockfile 2428 2529 USER 1001 2630