Fix npm ci failure for react-scripts 5 + React 19 peer deps
Docker Build and Push / build (push) Failing after 3m3s

react-scripts@5.0.1 declares peer deps against React 17/18; adding
--legacy-peer-deps lets npm ci succeed without changing the lockfile.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 4.6 committed 2026-08-26 14:48:18 -04:00
1 parent a0af4e7435
commit e7efe3c80d
1 file changed
+2 -2
+2 -2
View File
@@ -6,8 +6,8 @@ WORKDIR /app/client
# Copy client package files
COPY client/package*.json ./
# Install dependencies
RUN npm ci
# Install dependencies (--legacy-peer-deps needed for react-scripts 5 + React 19)
RUN npm ci --legacy-peer-deps
# Copy client source
COPY client/src ./src