We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b2aa4a commit 7685559Copy full SHA for 7685559
1 file changed
apps/backend/Dockerfile
@@ -21,8 +21,8 @@ RUN pnpm --filter @hype-stack/backend run generate
21
# Build backend (uses Nx target)
22
RUN npm run backend:build
23
24
-# Prune dev dependencies to keep runtime image small
25
-RUN npm prune --omit=dev
+# We need to set CI=true to limit node_modules to production dependencies.
+RUN CI=true pnpm prune --prod
26
27
FROM node:${NODE_VERSION} AS runner
28
WORKDIR /app
0 commit comments