File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,21 +85,12 @@ COPY railway-entrypoint.sh /usr/bin/railway-entrypoint.sh
8585RUN 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
You can’t perform that action at this time.
0 commit comments