From 15a037ca744502e4c6c850d8070516e60a2813e1 Mon Sep 17 00:00:00 2001 From: if0else9 <52785502+if0else9@users.noreply.github.com> Date: Wed, 19 Mar 2025 04:40:34 +0200 Subject: [PATCH] feat: increase frontend build memory to 4096 in Dockerfile (#3672) 297.8 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 04f0bda3..1dd238ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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