fix: remove package-lock.json in Docker build to fix rollup musl issue on Alpine

This commit is contained in:
BetterHuman
2026-05-05 23:11:04 +00:00
parent 2d47aa8da7
commit d8872f95e3
+2 -1
View File
@@ -2,7 +2,8 @@
FROM node:20-alpine AS frontend-build FROM node:20-alpine AS frontend-build
WORKDIR /app/frontend WORKDIR /app/frontend
COPY frontend/package*.json ./ 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/ ./ COPY frontend/ ./
RUN npm run build RUN npm run build