File tree Expand file tree Collapse file tree
claude-code/.devcontainer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 : |
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 : |
Original file line number Diff line number Diff line change @@ -148,12 +148,18 @@ RUN echo "node ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/node-nopasswd \
148148USER 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)
153153ARG AGENT_BROWSER_VERSION=latest
154154USER root
155155RUN 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
158164USER node
159165
You can’t perform that action at this time.
0 commit comments