Files
komodo-stacks/projects/code-server/custom-cont-init.d/apt-install.sh
T
Gitea Sync Bot 33f7f8bb69 Sync code-server from Gitea to monorepo
Repository: admin/code-server
Timestamp: 2025-04-20_22-08-54
Target directory: projects/code-server
2025-04-20 22:08:55 +01:00

18 lines
583 B
Bash

#!/usr/bin/env bash
echo "[custom-init] Installing apt packages..."
apt update
apt install -y python3 python3-pip python3-venv shellcheck docker.io docker-compose nodejs npm
# Install Claude Code globally
echo "[custom-init] Installing Claude Code..."
npm install -g @anthropic-ai/claude-code
# Add npm bin directory to PATH for the current user
echo "[custom-init] Adding npm bin directory to PATH"
echo "export PATH=\"/config/.npm-global/bin:$PATH\"" >> ~/.bashrc
# Source bashrc to make PATH changes effective immediately
source ~/.bashrc
echo "[custom-init] Setup complete!"