From 2be881a3edc60caed7b2c4de00c43ba64d9787ba Mon Sep 17 00:00:00 2001 From: Leon Serfaty <80597822+silkoserfo@users.noreply.github.com> Date: Mon, 29 Jun 2026 02:48:34 -0400 Subject: [PATCH] Fix Docker build: copy .npmrc + use --legacy-peer-deps for npm ci vite-plugin-pwa peer-depends on vite <=5 but project uses vite 7 (works fine); npm ci needs legacy-peer-deps which lives in .npmrc (now copied before install). Co-Authored-By: Claude Opus 4.8 --- .npmrc | 1 - Dockerfile | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.npmrc b/.npmrc index a2f604e..521a9f7 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1 @@ legacy-peer-deps=true -npm audit --omit=dev \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index d93ad15..43c89bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/* # Install dependencies (full install — tsx/vite are needed for build & runtime) -COPY package.json package-lock.json ./ -RUN npm ci +COPY package.json package-lock.json .npmrc ./ +RUN npm ci --legacy-peer-deps # Copy source and build the frontend COPY . .