vn6295337 Claude Opus 4.5 commited on
Commit
e6152f5
·
1 Parent(s): fc82d1b

Fix: Use npm install instead of npm ci for version flexibility

Browse files

npm ci fails when vitest@4.x peer dep (vite@7.x) doesn't match
locked vite@5.x. Using npm install --legacy-peer-deps resolves this.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -9,8 +9,8 @@ WORKDIR /frontend
9
  # Copy package files first for better caching
10
  COPY frontend/package.json frontend/package-lock.json ./
11
 
12
- # Install dependencies
13
- RUN npm ci
14
 
15
  # Copy frontend source code
16
  COPY frontend/ ./
 
9
  # Copy package files first for better caching
10
  COPY frontend/package.json frontend/package-lock.json ./
11
 
12
+ # Install dependencies (use npm install to resolve version mismatches)
13
+ RUN npm install --legacy-peer-deps
14
 
15
  # Copy frontend source code
16
  COPY frontend/ ./