This commit is contained in:
root
2025-09-07 14:11:08 +05:00
parent ab4968049a
commit 951a3acf45
+5 -2
View File
@@ -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