Skip to content

Commit 5d46ec5

Browse files
authored
Merge pull request #36 from gatezh/claude-code
Claude code
2 parents 48b2b8c + 678952e commit 5d46ec5

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

‎.github/workflows/build-claude-code.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
push: true
3131
target: default
3232
context: claude-code/.devcontainer
33-
file: claude-code/.devcontainer/Dockerfile
33+
file: Dockerfile
3434
platforms: linux/amd64,linux/arm64
3535
meta-images: ghcr.io/gatezh/devcontainer-images/claude-code
3636
meta-tags: |
@@ -54,7 +54,7 @@ jobs:
5454
push: true
5555
target: sandbox
5656
context: claude-code/.devcontainer
57-
file: claude-code/.devcontainer/Dockerfile
57+
file: Dockerfile
5858
platforms: linux/amd64,linux/arm64
5959
meta-images: ghcr.io/gatezh/devcontainer-images/claude-code-sandbox
6060
meta-tags: |

‎claude-code/.devcontainer/Dockerfile‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,18 @@ RUN echo "node ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/node-nopasswd \
148148
USER node
149149

150150
# agent-browser: headless browser automation for AI agents
151-
# Downloads Chrome from Chrome for Testing (Google's official automation channel).
152-
# --with-deps installs system dependencies on Linux.
151+
# amd64: Chrome for Testing (Google's official automation channel)
152+
# arm64: system Chromium (Chrome for Testing has no ARM64 Linux builds)
153153
ARG AGENT_BROWSER_VERSION=latest
154154
USER root
155155
RUN npm install -g agent-browser@${AGENT_BROWSER_VERSION} \
156-
&& agent-browser install --with-deps \
156+
&& ARCH=$(dpkg --print-architecture) \
157+
&& if [ "$ARCH" = "amd64" ]; then \
158+
agent-browser install --with-deps; \
159+
else \
160+
apt-get update && apt-get install -y --no-install-recommends chromium \
161+
&& apt-get clean && rm -rf /var/lib/apt/lists/*; \
162+
fi \
157163
&& chown -R node:node /usr/local/share/npm-global
158164
USER node
159165

0 commit comments

Comments
 (0)