Spaces:
Sleeping
Sleeping
Commit ·
ef8c27b
1
Parent(s): 002212a
Fix Rollup optional deps in Docker build
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
FROM node:20 AS frontend
|
| 2 |
WORKDIR /app
|
| 3 |
COPY frontend/package*.json frontend/
|
| 4 |
-
RUN cd frontend && npm
|
| 5 |
COPY frontend frontend
|
| 6 |
RUN cd frontend && npm run build
|
| 7 |
|
|
|
|
| 1 |
FROM node:20 AS frontend
|
| 2 |
WORKDIR /app
|
| 3 |
COPY frontend/package*.json frontend/
|
| 4 |
+
RUN cd frontend && npm install --include=optional --no-audit --no-fund
|
| 5 |
COPY frontend frontend
|
| 6 |
RUN cd frontend && npm run build
|
| 7 |
|