fix: cap Node.js heap to prevent OOM during wgc composition
schemas / vulnerabilities (pull_request) Successful in 1m58s
schemas / check (pull_request) Successful in 2m36s
schemas / check-release (pull_request) Successful in 2m46s
schemas / build (pull_request) Successful in 5m54s
pre-commit / pre-commit (pull_request) Successful in 6m40s
schemas / deploy-prod (pull_request) Has been skipped
schemas / vulnerabilities (pull_request) Successful in 1m58s
schemas / check (pull_request) Successful in 2m36s
schemas / check-release (pull_request) Successful in 2m46s
schemas / build (pull_request) Successful in 5m54s
pre-commit / pre-commit (pull_request) Successful in 6m40s
schemas / deploy-prod (pull_request) Has been skipped
Set NODE_OPTIONS=--max-old-space-size=64 after wgc installation to limit Node.js heap for runtime wgc invocations, preventing container OOMKills in memory-constrained environments. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -30,6 +30,9 @@ ENV TZ Europe/Stockholm
|
||||
# Install wgc CLI globally for Cosmo Router composition
|
||||
RUN npm install -g wgc@latest
|
||||
|
||||
# Cap Node.js heap for runtime wgc invocations to prevent OOM
|
||||
ENV NODE_OPTIONS="--max-old-space-size=64"
|
||||
|
||||
# Copy timezone data and certificates
|
||||
COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
|
||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
|
||||
Reference in New Issue
Block a user