Skip to content

Commit 6b941db

Browse files
authored
Install Claude Code in Dockerfile
Add installation steps for Claude Code in Dockerfile
1 parent 2578fbd commit 6b941db

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ RUN COMMANDS="sacct sacctmgr salloc sattach sbatch sbcast scancel scontrol sdiag
1616
&& echo 'ssh $USER@$SLURM_CLUSTER_NAME -t "cd $PWD; . ~/.zshrc 2>/dev/null || . ~/.bashrc 2>/dev/null; bash -lc '\'$CMD \$@\''"' >> "/usr/local/bin/$CMD" \
1717
&& chmod +x "/usr/local/bin/$CMD"; done
1818

19+
# Install Claude Code
20+
RUN curl -fsSL https://nodejs.org/dist/v18.20.8/node-v18.20.8-linux-x64.tar.xz \
21+
| tar -xJ -C /usr/local --strip-components=1
22+
RUN npm install -g @anthropic-ai/claude-code
23+
1924
FROM linux-base AS python-base
2025

2126
# Workdir

0 commit comments

Comments
 (0)