Spaces:
Running
Running
Fix npm peer dependency conflict in Docker build
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
FROM node:20-slim AS frontend-build
|
| 3 |
WORKDIR /app/frontend
|
| 4 |
COPY frontend/package.json frontend/package-lock.json ./
|
| 5 |
-
RUN npm ci
|
| 6 |
COPY frontend/ ./
|
| 7 |
RUN npm run build
|
| 8 |
|
|
|
|
| 2 |
FROM node:20-slim AS frontend-build
|
| 3 |
WORKDIR /app/frontend
|
| 4 |
COPY frontend/package.json frontend/package-lock.json ./
|
| 5 |
+
RUN npm ci --legacy-peer-deps
|
| 6 |
COPY frontend/ ./
|
| 7 |
RUN npm run build
|
| 8 |
|