Skip to content

Commit 2402f9d

Browse files
committed
Update Dockerfile
1 parent 5950dd1 commit 2402f9d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Docker/Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ COPY package*.json ./
99
# Install all dependencies (including devDependencies for build)
1010
RUN npm ci --ignore-scripts
1111

12+
RUN npm prune --omit-dev
13+
1214
# Copy all source code
1315
COPY . .
1416

@@ -20,12 +22,6 @@ FROM node:24-alpine AS final
2022

2123
WORKDIR /app
2224

23-
# Install only production dependencies (though frontend typically doesn't need runtime deps)
24-
# Copy package files first
25-
# COPY package*.json ./
26-
27-
# Install only production dependencies
28-
# RUN npm ci --only=production --ignore-scripts && npm cache clean --force
2925

3026
# Copy built application from builder stage
3127
COPY --from=builder /app/dist ./dist

0 commit comments

Comments
 (0)