dix docker

This commit is contained in:
salvacybersec
2025-11-11 04:43:08 +03:00
parent 05bb2fc55c
commit e339477f66
6 changed files with 3898 additions and 8 deletions

View File

@@ -10,7 +10,12 @@ WORKDIR /app
COPY package*.json ./
# Install dependencies
RUN npm ci --only=production
# Use npm ci if package-lock.json exists, otherwise npm install
RUN if [ -f package-lock.json ]; then \
npm ci --omit=dev; \
else \
npm install --only=production; \
fi
# Stage 2: Production stage
FROM node:20-alpine