Fix Dockerfile: Use npm install instead of npm ci (package-lock.json missing)

This commit is contained in:
2026-01-14 16:28:18 +01:00
parent 55c8fee3b8
commit fb7dd23027
2 changed files with 4 additions and 4 deletions

View File

@@ -2,9 +2,9 @@ FROM node:20-alpine AS builder
WORKDIR /app WORKDIR /app
# Install dependencies # Install dependencies (including dev dependencies for build)
COPY package*.json ./ COPY package*.json ./
RUN npm ci --only=production && npm cache clean --force RUN npm install && npm cache clean --force
# Copy source # Copy source
COPY . . COPY . .
@@ -19,7 +19,7 @@ WORKDIR /app
# Install only production dependencies # Install only production dependencies
COPY package*.json ./ COPY package*.json ./
RUN npm ci --only=production && npm cache clean --force RUN npm install --omit=dev && npm cache clean --force
# Copy built files # Copy built files
COPY --from=builder /app/dist ./dist COPY --from=builder /app/dist ./dist

View File

@@ -4,7 +4,7 @@ WORKDIR /app
# Install dependencies # Install dependencies
COPY package*.json ./ COPY package*.json ./
RUN npm ci RUN npm install
# Copy source and build # Copy source and build
COPY . . COPY . .