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:
@@ -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 \
|
--mount=type=cache,id=openclaw-bookworm-apt-lists,target=/var/lib/apt,sharing=locked \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
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
|
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
|
RUN chown node:node /app
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user