ciyidogan commited on
Commit
9542bcf
·
verified ·
1 Parent(s): cba93cd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -3,8 +3,9 @@
3
  FROM node:18-slim AS angular-build
4
  WORKDIR /app
5
  COPY flare-ui/package*.json ./
6
- # Use npm install instead of ci since we don't have package-lock.json
7
- RUN npm install --legacy-peer-deps
 
8
  COPY flare-ui/ ./
9
  RUN npm run build
10
  # Debug: List directories to see where the build output is
 
3
  FROM node:18-slim AS angular-build
4
  WORKDIR /app
5
  COPY flare-ui/package*.json ./
6
+
7
+ # Clean npm cache and install with legacy peer deps
8
+ RUN npm cache clean --force && npm install --legacy-peer-deps
9
  COPY flare-ui/ ./
10
  RUN npm run build
11
  # Debug: List directories to see where the build output is