A containerized development environment with AI-Assisted Development.
This Dockerfile creates a comprehensive development container based on Ubuntu 26.04 that includes Node.js runtime, essential development tools, and AI-powered coding capabilities through Claude Code. It's designed to provide a consistent, portable development environment that works across different machines and platforms.
- Node.js and npm pre-installed
- Claude Code integration for AI-assisted coding
- Other essential tools:
git,htop,jq,python3, and more - Support for installation of additional packages with
sudo - Optimized image size with apt cache clean-up
- Docker or compatible container runtime
Build and run the container:
docker build . -t dkc && \
docker run -d --name dkc-lab dkc tail -f /dev/null && \
docker exec -it dkc-lab bashProvide a
namefor easy reference. You can run multiple containers simultaneously for different AI agents.
To remove the container and image:
docker rm -f dkc-lab && docker image rm dkcWarning: This action cannot be undone.
Add the following docker-compose.dev.yml to your project:
services:
claude:
image: 'ghcr.io/leoborai/dkc:latest'
volumes:
- ../:/workspaces/dev
command: tail -f /dev/null # avoid using CPU to keep the container aliveRun the Docker Compose file:
docker compose -f ./dev/docker-compose.dev.yml up --build --detachFinally, exec into the running container:
docker exec -it <container_id> bash- The container runs as a non-root user for security.
- All development tools are pre-installed and ready to use.
- The image is optimized for size by cleaning the apt cache after installation.
- Sudo access is available for installing additional packages if needed.