File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,12 @@ FROM base AS build
2020ENV NODE_ENV=production
2121# Install dependencies
2222COPY package*.json ./
23- RUN npm ci
23+ # Skip all lifecycle scripts including husky
24+ RUN npm install --ignore-scripts
2425# Copy source code
2526COPY . .
27+ # Build the application
28+ RUN npm run build
2629
2730# Production stage
2831FROM node:22-alpine AS production
@@ -32,8 +35,8 @@ WORKDIR /app
3235COPY --from=build /app/dist ./dist
3336COPY --from=build /app/package.json ./package.json
3437# Install only production dependencies
35- RUN npm ci --omit=dev
38+ RUN npm install --omit=dev --ignore-scripts
3639# Expose production port
3740EXPOSE 4321
3841# Start production server
39- CMD ["node" , "./dist/server/entry.mjs" ]
42+ CMD ["node" , "./dist/server/entry.mjs" ]
You can’t perform that action at this time.
0 commit comments