Dockerfile: install chromium for the OpenClaw browser plugin

The node:24-bookworm-slim runtime ships no browser, so the `browser` plugin
fails with "No supported browser found". Add Debian's real `chromium` (not
snap) to the runtime apt layer; its shared libs (libnss3, libgbm1, ...) come
in as Depends. Adolf fork addition for authenticated web access.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014t8Qg9gi7H7HtT8MncoXAB
This commit is contained in:
2026-07-16 14:40:12 +00:00
parent 6308471b2a
commit c69d047f3c

View File

@@ -191,8 +191,12 @@ RUN --mount=type=cache,id=openclaw-bookworm-apt-cache,target=/var/cache/apt,shar
--mount=type=cache,id=openclaw-bookworm-apt-lists,target=/var/lib/apt,sharing=locked \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates curl git hostname lsof openssl procps python3 tini && \
ca-certificates chromium curl git hostname lsof openssl procps python3 tini && \
update-ca-certificates
# chromium (Debian's real package, not snap) added for the OpenClaw `browser`
# plugin — it resolves a system Chrome/Chromium to drive via CDP, and the
# node:*-slim base ships none. Its shared libs (libnss3, libgbm1, ...) come in
# as chromium's Depends. Adolf fork addition (kb#64: authenticated web access).
RUN chown node:node /app