From 10c1c4d69e89a466eac093fbbee21155d4de2aa7 Mon Sep 17 00:00:00 2001 From: RKWojs Date: Mon, 29 Dec 2025 10:01:27 +0100 Subject: [PATCH] fix: set Node options to prevent memory issues during build --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index ce077c1..4ffea93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,10 @@ RUN npm install RUN if [ -z "$GIT_REPO_URL" ]; then echo "Copying local files..."; fi COPY . . +# Set Node options for build to prevent memory issues +ENV NODE_OPTIONS="--max-old-space-size=4096" +ENV NEXT_TELEMETRY_DISABLED=1 + # Build the application for production RUN npm run build