feat: increase frontend build memory to 4096 in Dockerfile (#3672)

297.8 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
This commit is contained in:
if0else9 2025-03-19 04:40:34 +02:00 committed by GitHub
parent 73c680d56f
commit 15a037ca74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
FROM --platform=$BUILDPLATFORM node:18.19.0 AS FRONT
WORKDIR /web
COPY ./web .
RUN yarn install --frozen-lockfile --network-timeout 1000000 && yarn run build
RUN yarn install --frozen-lockfile --network-timeout 1000000 && NODE_OPTIONS="--max-old-space-size=4096" yarn run build
FROM --platform=$BUILDPLATFORM golang:1.20.12 AS BACK