Fixing build error and npm issues

This commit is contained in:
Hamza-Ayed
2026-04-17 00:03:48 +03:00
parent 3004207ecb
commit 1f53da1068

View File

@@ -8,7 +8,7 @@ FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
RUN npm install
COPY . .
RUN npm run build
@@ -24,7 +24,7 @@ WORKDIR /app
# Copy only production deps
COPY package*.json ./
RUN npm ci --only=production && npm cache clean --force
RUN npm install --only=production && npm cache clean --force
# Copy built application
COPY --from=builder /app/dist ./dist