Skip to content

Commit ebcc552

Browse files
gatezhclaude
andcommitted
fix: retry Claude Code install on 429 + drop explicit file input
- Add retry with 15s backoff for Claude Code installer (4 parallel builds can trigger rate limiting) - Remove explicit file: Dockerfile input — github-builder defaults to {context}/Dockerfile which is more reliable with Git URL contexts Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 678952e commit ebcc552

2 files changed

Lines changed: 7 additions & 3 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: Dockerfile
33+
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: Dockerfile
57+
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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ RUN npx -y playwright@${PLAYWRIGHT_VERSION} install --only-shell
125125
# The installer places the binary in ~/.local/bin/ (previously ~/.claude/bin/).
126126
# Runtime volume mounts over ~/.claude/ (for config persistence) could shadow it,
127127
# so copy to a system path to ensure the binary survives volume mounts.
128-
RUN curl -fsSL https://claude.ai/install.sh | bash
128+
RUN for i in 1 2 3; do \
129+
curl -fsSL https://claude.ai/install.sh | bash && break; \
130+
echo "Retry $i/3 in 15s..." && sleep 15; \
131+
done \
132+
&& test -x /home/node/.local/bin/claude
129133
USER root
130134
RUN if [ -d /home/node/.local/bin ] && ls /home/node/.local/bin/claude* >/dev/null 2>&1; then \
131135
cp /home/node/.local/bin/claude* /usr/local/bin/; \

0 commit comments

Comments
 (0)