fix: bootstrap Claude Code on first boot since it installs to /root (PVC)
Some checks failed
Build Devpod / build (push) Failing after 6s
Build & Release / build (push) Successful in 16s

This commit is contained in:
Ryan Moon
2026-04-04 11:31:51 -05:00
parent 1c56023491
commit 2b141d45f3
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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