mirror of
https://github.com/coder/code-server.git
synced 2026-02-19 18:01:15 +08:00
Auto install claude
This commit is contained in:
parent
babd140a8c
commit
2c056d21ef
17
Dockerfile
17
Dockerfile
@ -85,21 +85,12 @@ COPY railway-entrypoint.sh /usr/bin/railway-entrypoint.sh
|
||||
RUN chmod +x /usr/bin/railway-entrypoint.sh
|
||||
|
||||
# ============================================================================
|
||||
# FALLBACK CLAUDE CODE CLI INSTALLATION
|
||||
# Installed to /usr/local/bin as fallback - volume version takes priority
|
||||
# Claude installer puts binary in ~/.local/bin/claude
|
||||
# CLAUDE CODE CLI INSTALLATION
|
||||
# Install globally via npm - this is the official package
|
||||
# ============================================================================
|
||||
|
||||
RUN curl -fsSL https://claude.ai/install.sh | bash \
|
||||
&& if [ -f /root/.local/bin/claude ]; then \
|
||||
cp /root/.local/bin/claude /usr/local/bin/claude; \
|
||||
chmod +x /usr/local/bin/claude; \
|
||||
echo "Claude CLI installed to /usr/local/bin/claude"; \
|
||||
else \
|
||||
echo "WARNING: Claude CLI not found at expected path"; \
|
||||
ls -la /root/.local/bin/ 2>/dev/null || echo "~/.local/bin does not exist"; \
|
||||
ls -la /root/.claude/ 2>/dev/null || echo "~/.claude does not exist"; \
|
||||
fi
|
||||
RUN npm install -g @anthropic-ai/claude-code \
|
||||
&& echo "Claude CLI installed: $(claude --version 2>/dev/null || echo 'checking...')"
|
||||
|
||||
# ============================================================================
|
||||
# RUNTIME
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user