fix: remove package-lock.json in Docker build to fix rollup musl issue on Alpine
This commit is contained in:
+2
-1
@@ -2,7 +2,8 @@
|
||||
FROM node:20-alpine AS frontend-build
|
||||
WORKDIR /app/frontend
|
||||
COPY frontend/package*.json ./
|
||||
RUN npm install --legacy-peer-deps
|
||||
# Remove lock file and reinstall fresh to avoid rollup musl bug on Alpine
|
||||
RUN rm -f package-lock.json && npm install --legacy-peer-deps
|
||||
COPY frontend/ ./
|
||||
RUN npm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user