fix: cap Node.js heap to prevent OOM during wgc composition #788
@@ -30,6 +30,9 @@ ENV TZ Europe/Stockholm
|
|||||||
# Install wgc CLI globally for Cosmo Router composition
|
# Install wgc CLI globally for Cosmo Router composition
|
||||||
RUN npm install -g wgc@latest
|
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 timezone data and certificates
|
||||||
COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
|
COPY --from=build /usr/share/zoneinfo /usr/share/zoneinfo
|
||||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
|
|||||||
Reference in New Issue
Block a user