mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
fix: harden Docker/GCP onboarding flow (#26253) (thanks @pandego)
This commit is contained in:
@@ -25,8 +25,7 @@ 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
|
||||
RUN NODE_OPTIONS=--max-old-space-size=2048 pnpm install --frozen-lockfile
|
||||
|
||||
# Optionally install Chromium and Xvfb for browser automation.
|
||||
# Build with: docker build --build-arg OPENCLAW_INSTALL_BROWSER=1 ...
|
||||
|
||||
Reference in New Issue
Block a user