fix: bootstrap Claude Code on first boot since it installs to /root (PVC)
This commit is contained in:
@@ -16,9 +16,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
RUN curl -fsSL https://bun.sh/install | bash -s -- --install-dir /usr/local/bin \
|
||||
&& ln -sf /usr/local/bin/bun /usr/local/bin/bunx
|
||||
|
||||
# Claude Code CLI
|
||||
RUN curl -fsSL https://claude.ai/install.sh | bash
|
||||
|
||||
# code-server (VS Code in browser)
|
||||
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
||||
|
||||
|
||||
@@ -41,6 +41,11 @@ if [ ! -f /root/.gitconfig ]; then
|
||||
EOF
|
||||
fi
|
||||
|
||||
# Install Claude Code on first boot (installs to /root/.claude, persists on PVC)
|
||||
if [ ! -f /root/.claude/bin/claude ]; then
|
||||
curl -fsSL https://claude.ai/install.sh | bash
|
||||
fi
|
||||
|
||||
# Allow root login via SSH key, listen on internal port 2222
|
||||
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
|
||||
echo "Port 2222" >> /etc/ssh/sshd_config
|
||||
|
||||
Reference in New Issue
Block a user