Docker/docs: reduce docker build OOM risk on small GCP hosts

This commit is contained in:
pandego
2026-02-25 08:35:48 +01:00
committed by Peter Steinberger
parent cb3e5c35b0
commit e8197404d0
3 changed files with 12 additions and 5 deletions

View File

@@ -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.