From 951a3acf457c1b0a66bec942d606dad12b2d697e Mon Sep 17 00:00:00 2001 From: root Date: Sun, 7 Sep 2025 14:11:08 +0500 Subject: [PATCH] . --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1f5a4bc..9a3a11e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ WORKDIR /app # Copy package files COPY package*.json ./ -# Install dependencies -RUN npm ci --only=production +# Install all dependencies (including dev dependencies for build) +RUN npm ci # Copy source code COPY . . @@ -16,6 +16,9 @@ COPY . . # Build the application RUN npm run build +# Clean up dev dependencies to reduce image size +RUN npm prune --production + # Production stage FROM nginx:alpine AS production