#!/bin/bash set -e # Install Claude Code if not already present in the home volume. # Because the home directory is a volume, this install persists across # container restarts and rebuilds. if ! command -v claude &>/dev/null; then echo "Claude Code not found — running installer..." curl -fsSL https://claude.ai/install.sh | bash echo "Claude Code installed successfully." else echo "Claude Code $(claude --version 2>/dev/null || echo '(version unknown)') ready." fi exec "$@"