Hanzo Dev commited on
Commit
3efafce
·
1 Parent(s): 7213613

Fix npm ci dependency issues - use legacy-peer-deps flag

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. package.json +2 -1
Dockerfile CHANGED
@@ -5,8 +5,8 @@ WORKDIR /app
5
  # Copy package files
6
  COPY package*.json ./
7
 
8
- # Install dependencies
9
- RUN npm ci --only=production
10
 
11
  # Copy application files
12
  COPY . .
 
5
  # Copy package files
6
  COPY package*.json ./
7
 
8
+ # Install dependencies with legacy peer deps flag
9
+ RUN npm ci --legacy-peer-deps || npm install --legacy-peer-deps
10
 
11
  # Copy application files
12
  COPY . .
package.json CHANGED
@@ -11,7 +11,8 @@
11
  "build": "next build",
12
  "start": "next start",
13
  "lint": "next lint",
14
- "preview": "vite preview"
 
15
  },
16
  "dependencies": {
17
  "next": "14.2.5",
 
11
  "build": "next build",
12
  "start": "next start",
13
  "lint": "next lint",
14
+ "preview": "vite preview",
15
+ "ci": "npm ci --legacy-peer-deps"
16
  },
17
  "dependencies": {
18
  "next": "14.2.5",