Skip to content

Commit 5cc6cdd

Browse files
declan-scaleclaude
andcommitted
fix(cli): install Claude Code CLI in claude-code uv Dockerfiles
Round-3 Greptile parity: the uv-path Dockerfile-uv.j2 variants (default, sync, temporal) installed node/npm but not the `claude` CLI, leaving use_uv=True containers non-functional. Mirror the npm install -g @anthropic-ai/claude-code step already added to the pip Dockerfiles. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 168ef55 commit 5cc6cdd

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/agentex/lib/cli/templates/default-claude-code/Dockerfile-uv.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ RUN apt-get update && apt-get install -y \
2020
&& apt-get clean \
2121
&& rm -rf /var/lib/apt/lists/**
2222

23+
# Install the Claude Code CLI: the agent shells out to `claude` on every turn,
24+
# so the binary must be present in the runtime image.
25+
RUN npm install -g @anthropic-ai/claude-code
26+
2327
ENV UV_COMPILE_BYTECODE=1
2428
ENV UV_LINK_MODE=copy
2529
ENV UV_HTTP_TIMEOUT=1000

src/agentex/lib/cli/templates/sync-claude-code/Dockerfile-uv.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ RUN apt-get update && apt-get install -y \
2020
&& apt-get clean \
2121
&& rm -rf /var/lib/apt/lists/**
2222

23+
# Install the Claude Code CLI: the agent shells out to `claude` on every turn,
24+
# so the binary must be present in the runtime image.
25+
RUN npm install -g @anthropic-ai/claude-code
26+
2327
ENV UV_COMPILE_BYTECODE=1
2428
ENV UV_LINK_MODE=copy
2529
ENV UV_HTTP_TIMEOUT=1000

src/agentex/lib/cli/templates/temporal-claude-code/Dockerfile-uv.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ RUN apt-get update && apt-get install -y \
2020
&& apt-get clean \
2121
&& rm -rf /var/lib/apt/lists/**
2222

23+
# Install the Claude Code CLI: the activity shells out to `claude` on every
24+
# turn, so the binary must be present in the runtime image.
25+
RUN npm install -g @anthropic-ai/claude-code
26+
2327
# Install tctl (Temporal CLI)
2428
RUN ARCH="$(uname -m)" && \
2529
case "$ARCH" in x86_64) TCTL_ARCH=amd64 ;; aarch64|arm64) TCTL_ARCH=arm64 ;; *) TCTL_ARCH=amd64 ;; esac && \

0 commit comments

Comments
 (0)