fix: use node:20-slim builder to fix Rollup musl/glibc native binary issue

This commit is contained in:
Ashwin Kumar 2026-04-09 02:16:41 +02:00
parent c97d54bade
commit c7d0c3dcd0

View file

@ -1,8 +1,11 @@
FROM node:20-alpine AS builder
FROM node:20-slim AS builder
WORKDIR /app
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
ENV CYPRESS_INSTALL_BINARY=0
COPY package*.json ./
RUN npm install --legacy-peer-deps --ignore-scripts
RUN npm install --legacy-peer-deps
COPY . .
RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build