From 439cc80546234074176025a4623b0b0ffc74c416 Mon Sep 17 00:00:00 2001 From: Marco Gallegos Date: Sun, 18 Jan 2026 09:46:25 -0600 Subject: [PATCH] Fix Docker build memory issue by increasing Node.js heap size - Increase Node.js max old space size to 4GB for build - Resolve 'JavaScript heap out of memory' error during Docker build - Enable successful Coolify deployment --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac29e79..eacc82d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,8 +22,11 @@ ENV NODE_ENV production ENV NEXT_PUBLIC_SUPABASE_URL=https://placeholder.supabase.co ENV NEXT_PUBLIC_SUPABASE_ANON_KEY=placeholder-anon-key ENV SUPABASE_SERVICE_ROLE_KEY=placeholder-service-role-key -ENV STRIPE_SECRET_KEY=sk_test_placeholder_key -ENV RESEND_API_KEY=re_placeholder_key +ENV STRIPE_SECRET_KEY= +ENV RESEND_API_KEY= + +# Aumentar memoria disponible para Node.js durante el build +ENV NODE_OPTIONS=--max-old-space-size=4096 # Build optimizado RUN npm run build