Skip to content

Commit 530dacd

Browse files
committed
Configure headless Chromium out of the box
1 parent 95f876d commit 530dacd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
FROM node:22-trixie-slim
55

66
# Install global deps
7-
RUN apt-get update && apt-get install -y sudo ca-certificates curl git build-essential procps file && rm -rf /var/lib/apt/lists/*
7+
RUN apt-get update && apt-get install -y sudo ca-certificates curl git build-essential procps file chromium && rm -rf /var/lib/apt/lists/*
88

99
# Set home directory
1010
ENV HOME=/data

server.cjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,11 @@ function handleApiSetup(req, res) {
455455

456456
// Build minimal valid config
457457
const config = {
458+
browser: {
459+
headless: true,
460+
noSandbox: true,
461+
defaultProfile: "openclaw",
462+
},
458463
agents: {
459464
defaults: {
460465
model: {

0 commit comments

Comments
 (0)