fix: copy claude binary to /usr/local/bin instead of symlinking

Symlink left the original in ~/.local/bin which triggered a PATH
warning at runtime. Copy the binary and remove the original.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-25 19:11:33 -05:00
parent 2136976b8e
commit 276477e245
+2 -1
View File
@@ -66,7 +66,8 @@ RUN npm install -g happy-coder
# Install Claude Code native binary (npm wrapper breaks remote control)
RUN curl -fsSL https://claude.ai/install.sh | bash && \
ln -s /root/.local/bin/claude /usr/local/bin/claude && \
cp /root/.local/bin/claude /usr/local/bin/claude && \
rm -rf /root/.local/bin/claude && \
claude --version
# Install OpenCode AI coding agent