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:39 +02:00
parent 2d163678e6
commit 5038f28086

View file

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