Docker/docs: reduce docker build OOM risk on small GCP hosts
This commit is contained in:
committed by
Peter Steinberger
parent
cb3e5c35b0
commit
e8197404d0
@@ -23,6 +23,9 @@ COPY --chown=node:node patches ./patches
|
||||
COPY --chown=node:node scripts ./scripts
|
||||
|
||||
USER node
|
||||
# Reduce OOM risk on low-memory hosts during dependency installation.
|
||||
# Docker builds on small VMs may otherwise fail with "Killed" (exit 137).
|
||||
ENV NODE_OPTIONS=--max-old-space-size=2048
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
# Optionally install Chromium and Xvfb for browser automation.
|
||||
|
||||
Reference in New Issue
Block a user