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 and OpenCode. 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
- OpenCode 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 alivedocker compose -f ./dev/docker-compose.dev.yml up --build --detachFinally, exec into the running container:
docker exec -it <container_id> bashdocker run --rm -d -t \
--name dkc-claude-acp \
-v $(pwd):/app \
-w /app \
ghcr.io/leoborai/dkc:latestYou can use this container along with your Zed Editor by adding an agent_server
as follows to your settings.json file:
"agent_servers": {
"DKC": {
"type": "custom",
"command": "docker",
"args": ["exec", "-i", "dkc-claude-acp", "claude-agent-acp"]
},
},Make sure Claude is authenticated inside the DKC.
- 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.