fix: symlink claude binary to /usr/local/bin after install

The installer puts claude in ~/.local/bin which isn't in PATH during
Docker build.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-25 18:54:45 -05:00
parent e269e19f23
commit 2136976b8e
+3 -1
View File
@@ -65,7 +65,9 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
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 && claude --version
RUN curl -fsSL https://claude.ai/install.sh | bash && \
ln -s /root/.local/bin/claude /usr/local/bin/claude && \
claude --version
# Install OpenCode AI coding agent
RUN OPENCODE_VERSION=$(curl -sL https://api.github.com/repos/opencode-ai/opencode/releases/latest | jq -r '.tag_name') && \