Skip to content

Commit ac58e39

Browse files
committed
NODE_ENV
1 parent 9fdc339 commit ac58e39

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ COPY package*.json ./
4141
# Install only production dependencies
4242
RUN npm ci --omit=dev && npm cache clean --force
4343

44+
# Set NODE_ENV explicitly
45+
ENV NODE_ENV=production
46+
4447
# Copy built application from builder stage
4548
COPY --from=builder --chown=nodeuser:nodejs /app/dist ./dist
4649
COPY --from=builder --chown=nodeuser:nodejs /app/public ./public

0 commit comments

Comments
 (0)