From 75d1dc2914cf567ad58011efdc7cafc4bf673735 Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Sun, 25 Jan 2026 11:45:11 +0530 Subject: [PATCH] fix: add --legacy-peer-deps to npm ci for peer dependency compatibility --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f268356..212970c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,8 @@ COPY package*.json ./ COPY prisma ./prisma/ COPY prisma.config.ts ./ -# Install dependencies -RUN npm ci +# Install dependencies (--legacy-peer-deps for peer dependency compatibility) +RUN npm ci --legacy-peer-deps # Generate Prisma client RUN npx prisma generate @@ -45,8 +45,8 @@ RUN addgroup -g 1001 -S nodejs && \ # Copy package files COPY package*.json ./ -# Install production dependencies only -RUN npm ci --only=production +# Install production dependencies only (--legacy-peer-deps for peer dependency compatibility) +RUN npm ci --omit=dev --legacy-peer-deps # Copy Prisma schema and generate client COPY prisma ./prisma/