diff --git a/Dockerfile b/Dockerfile index 7fdf4f37..5ff46dc0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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