From 690978a790f2f47ecc2eb91479fc08ea761c4566 Mon Sep 17 00:00:00 2001 From: hilr Date: Mon, 22 Jun 2026 12:53:22 +0000 Subject: [PATCH] fix: drop agent-browser --with-deps, install browser libs directly agent-browser install --with-deps shells out to `sudo apt-get`, which doesn't exist on python:3.12-slim, so the Docker build fails with ENOENT. Drop --with-deps and instead install the system libraries agent-browser wanted (libxcb-shm0, libpangocairo-1.0-0, libcairo-gobject2, libgdk-pixbuf-2.0-0, libfreetype6, libatspi2.0-0, fonts-noto-color-emoji, fonts-noto-cjk, fonts-freefont-ttf) directly via apt. Co-Authored-By: Claude Opus 4.7 --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 73f985a..6d5ad17 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,11 +9,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ curl ca-certificates git git-lfs wget unzip \ libglib2.0-0 libatk1.0-0 libatk-bridge2.0-0 libcups2 \ libdrm2 libgbm1 libgtk-3-0 libxkbcommon0 libxshmfence1 \ - libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 \ + libx11-6 libx11-xcb1 libxcb1 libxcb-shm0 libxcomposite1 libxcursor1 \ libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 \ libxrender1 libxss1 libxtst6 \ - libnss3 libnspr4 libpango-1.0-0 libcairo2 \ - libdbus-1-3 libfontconfig1 fonts-liberation fonts-wqy-zenhei libasound2 \ + libnss3 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libcairo2 libcairo-gobject2 \ + libdbus-1-3 libfontconfig1 libfreetype6 libgdk-pixbuf-2.0-0 libatspi2.0-0 \ + fonts-liberation fonts-wqy-zenhei fonts-noto-color-emoji fonts-noto-cjk fonts-freefont-ttf libasound2 \ && curl -fsSL https://fnm.vercel.app/install | bash -s -- --install-dir /usr/local/bin --skip-shell \ && fnm install 24 \ && fnm default 24 \ @@ -33,7 +34,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && echo "registry=https://registry.npmmirror.com" > /home/agent/.npmrc \ && npm config set prefix '/home/agent/.npm-global' \ && npm install -g @anthropic-ai/claude-code@2.1.110 agent-browser \ - && /home/agent/.npm-global/bin/agent-browser install --with-deps \ + && /home/agent/.npm-global/bin/agent-browser install \ && chmod -R 755 /root/.agent-browser \ && npm cache clean --force \ && apt-get clean && rm -rf /var/lib/apt/lists/* \