diff --git a/Dockerfile b/Dockerfile index 1ef8459..11b9447 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,10 +33,10 @@ ENV API_HOSTNAME=internal-api.inboxi.ng # Ensure .next directory exists and has proper permissions RUN mkdir -p /app/.next && chmod -R 755 /app/.next -# Build the Next.js application with increased memory for Turbopack +# Build the Next.js application with reduced memory for Turbopack # Next.js 16 uses Turbopack by default which may need more memory RUN echo "Building with GIT_COMMIT_SHA=$(cat /app/git_commit_sha)" && \ - NODE_OPTIONS='--max_old_space_size=4096' NEXT_TELEMETRY_DISABLED=1 pnpm run build + NODE_OPTIONS='--max_old_space_size=2048' NEXT_TELEMETRY_DISABLED=1 pnpm run build # ---- Production Stage ---- # Use Node 20 for production as well to match builder