fix: copy .npmrc into Docker frontend build stage
Browse filesThe .npmrc with legacy-peer-deps is needed for the
collaboration-cursor v2 peer dep conflict with core v3.
Made-with: Cursor
- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
FROM node:20-slim AS frontend-build
|
| 2 |
|
| 3 |
WORKDIR /app/frontend
|
| 4 |
-
COPY frontend/package.json frontend/package-lock.json* ./
|
| 5 |
RUN npm install
|
| 6 |
COPY frontend/ ./
|
| 7 |
RUN npm run build
|
|
|
|
| 1 |
FROM node:20-slim AS frontend-build
|
| 2 |
|
| 3 |
WORKDIR /app/frontend
|
| 4 |
+
COPY frontend/package.json frontend/package-lock.json* frontend/.npmrc* ./
|
| 5 |
RUN npm install
|
| 6 |
COPY frontend/ ./
|
| 7 |
RUN npm run build
|