Skip to content

Commit 3b5f111

Browse files
committed
fix: add ~/.local/bin to PATH for native CLI detection
1 parent 98d0232 commit 3b5f111

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Dockerfile.alpine

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ RUN curl -fsSL https://claude.ai/install.sh | bash && \
4545
cp /root/.local/bin/claude /usr/local/bin/claude && \
4646
chmod 755 /usr/local/bin/claude
4747
ENV NODE_PATH=/usr/local/lib/node_modules
48+
ENV PATH="/home/claude/.local/bin:$PATH"
4849

4950
# Create non-root user with CLI symlink at expected path, configure settings
5051
RUN adduser -D -s /bin/bash claude && \

Dockerfile.typescript

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3636
COPY --from=builder /usr/local/lib/node_modules /usr/local/lib/node_modules
3737
COPY --from=builder /usr/local/bin/ /usr/local/bin/
3838
ENV NODE_PATH=/usr/local/lib/node_modules
39+
ENV PATH="/home/claude/.local/bin:$PATH"
3940

4041
# Install Claude Code CLI via native installer
4142
RUN curl -fsSL https://claude.ai/install.sh | bash && \

0 commit comments

Comments
 (0)