fix: use node:20-slim builder to fix Rollup musl/glibc native binary issue
This commit is contained in:
parent
2d163678e6
commit
5038f28086
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue