File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,11 +56,12 @@ USER node
5656RUN python3 -m pip install --user --break-system-packages uv
5757
5858# === CLAUDE CODE INSTALLATION - CACHED LAYER ===
59- # This layer is cached and only rebuilt when Claude CLI updates
60- # Using direct download for reliability
61- RUN mkdir -p /home/node/.local/bin && \
62- wget -O /home/node/.local/bin/claude https://github.com/anthropics/claude-cli/releases/latest/download/claude-linux-x86_64 && \
63- chmod +x /home/node/.local/bin/claude
59+ # This layer is cached and only rebuilt when Dockerfile changes
60+ # Using official install script with timeout protection
61+ RUN wget -q -O /tmp/claude-install.sh https://claude.ai/install.sh && \
62+ chmod +x /tmp/claude-install.sh && \
63+ timeout 120 bash /tmp/claude-install.sh || exit 1 && \
64+ rm -f /tmp/claude-install.sh
6465
6566# Copy application code AFTER CLI install (so code changes don't rebuild Claude CLI)
6667COPY . .
You can’t perform that action at this time.
0 commit comments