Skip to content

Commit 2c056d2

Browse files
committed
Auto install claude
1 parent babd140 commit 2c056d2

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

Dockerfile

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,21 +85,12 @@ COPY railway-entrypoint.sh /usr/bin/railway-entrypoint.sh
8585
RUN chmod +x /usr/bin/railway-entrypoint.sh
8686

8787
# ============================================================================
88-
# FALLBACK CLAUDE CODE CLI INSTALLATION
89-
# Installed to /usr/local/bin as fallback - volume version takes priority
90-
# Claude installer puts binary in ~/.local/bin/claude
88+
# CLAUDE CODE CLI INSTALLATION
89+
# Install globally via npm - this is the official package
9190
# ============================================================================
9291

93-
RUN curl -fsSL https://claude.ai/install.sh | bash \
94-
&& if [ -f /root/.local/bin/claude ]; then \
95-
cp /root/.local/bin/claude /usr/local/bin/claude; \
96-
chmod +x /usr/local/bin/claude; \
97-
echo "Claude CLI installed to /usr/local/bin/claude"; \
98-
else \
99-
echo "WARNING: Claude CLI not found at expected path"; \
100-
ls -la /root/.local/bin/ 2>/dev/null || echo "~/.local/bin does not exist"; \
101-
ls -la /root/.claude/ 2>/dev/null || echo "~/.claude does not exist"; \
102-
fi
92+
RUN npm install -g @anthropic-ai/claude-code \
93+
&& echo "Claude CLI installed: $(claude --version 2>/dev/null || echo 'checking...')"
10394

10495
# ============================================================================
10596
# RUNTIME

0 commit comments

Comments
 (0)