Skip to content

Commit b879679

Browse files
fix: use claude.ai install script with timeout
1 parent 24896db commit b879679

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

discord-server/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ USER node
5656
RUN 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)
6667
COPY . .

0 commit comments

Comments
 (0)