Installs Claude Code for AI code assistance https://code.claude.com
"features": {
"ghcr.io/stu-bell/devcontainer-features/claude-code:0": {}
}Tested on Alpine, Debian and Ubuntu.
Add the feature to your devcontainer.json:
{
"image": "mcr.microsoft.com/devcontainers/base:alpine",
"features": {
"ghcr.io/stu-bell/devcontainer-features/claude-code": {}
}
}Start your devcontainer, ssh in, and run: claude
During installation, especially with limited memory (e.g., in a Docker-in-Docker environment), the Claude Code installer (https://claude.ai/install.sh) has been observed to consume a significant amount of RAM, leading to the installation process being "Killed" due to Out-Of-Memory (OOM) errors. If you encounter memory-related installation failures, consider increasing the memory allocation for your Docker/Podman container or devcontainer.
Note: This file was auto-generated from the devcontainer-feature.json. Add additional notes to a NOTES.md.