fix: cap Node.js heap to prevent OOM during wgc composition
schemas / vulnerabilities (pull_request) Successful in 2m5s
schemas / check (pull_request) Successful in 3m45s
schemas / check-release (pull_request) Successful in 2m58s
pre-commit / pre-commit (pull_request) Successful in 6m42s
schemas / build (pull_request) Failing after 5m54s
schemas / deploy-prod (pull_request) Has been skipped

Set NODE_OPTIONS=--max-old-space-size=64 to limit wgc memory usage
when generating Cosmo Router configs, preventing container OOMKills
in memory-constrained environments.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 10:00:48 +02:00
parent 1150e82c22
commit 2ec77f9a84
+1
View File
@@ -26,6 +26,7 @@ COPY --from=build /build/coverage.txt /
FROM node:24.14.1-alpine@sha256:01743339035a5c3c11a373cd7c83aeab6ed1457b55da6a69e014a95ac4e4700b
ENV TZ Europe/Stockholm
ENV NODE_OPTIONS="--max-old-space-size=64"
# Install wgc CLI globally for Cosmo Router composition
RUN npm install -g wgc@latest