diff --git a/docs/install/podman.md b/docs/install/podman.md index 012ad787b96..c87386071e3 100644 --- a/docs/install/podman.md +++ b/docs/install/podman.md @@ -63,6 +63,7 @@ Optional build/setup env vars: - `OPENCLAW_IMAGE` or `OPENCLAW_PODMAN_IMAGE` -- use an existing/pulled image instead of building `openclaw:local` - `OPENCLAW_DOCKER_APT_PACKAGES` -- install extra apt packages during image build - `OPENCLAW_EXTENSIONS` -- pre-install plugin dependencies at build time +- `OPENCLAW_INSTALL_BROWSER` -- pre-install Chromium and Xvfb for browser automation (set to `1` to enable) Container start: diff --git a/scripts/podman/setup.sh b/scripts/podman/setup.sh index 6f4209d8cc8..4c59831901c 100755 --- a/scripts/podman/setup.sh +++ b/scripts/podman/setup.sh @@ -365,6 +365,9 @@ fi if [[ -n "${OPENCLAW_EXTENSIONS:-}" ]]; then BUILD_ARGS+=(--build-arg "OPENCLAW_EXTENSIONS=${OPENCLAW_EXTENSIONS}") fi +if [[ -n "${OPENCLAW_INSTALL_BROWSER:-}" ]]; then + BUILD_ARGS+=(--build-arg "OPENCLAW_INSTALL_BROWSER=${OPENCLAW_INSTALL_BROWSER}") +fi if [[ "$OPENCLAW_IMAGE" == "openclaw:local" ]]; then echo "Building image $OPENCLAW_IMAGE ..."