Skip to content

Commit 7685559

Browse files
committed
feat: 🎸 working Dockerfile
1 parent 4b2aa4a commit 7685559

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/backend/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ RUN pnpm --filter @hype-stack/backend run generate
2121
# Build backend (uses Nx target)
2222
RUN npm run backend:build
2323

24-
# Prune dev dependencies to keep runtime image small
25-
RUN npm prune --omit=dev
24+
# We need to set CI=true to limit node_modules to production dependencies.
25+
RUN CI=true pnpm prune --prod
2626

2727
FROM node:${NODE_VERSION} AS runner
2828
WORKDIR /app

0 commit comments

Comments
 (0)