Skip to content

LeoBorai/dkc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

🚀 AI Development-Kit Container (DKC)

A containerized development environment with AI-Assisted Development.

Overview

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.

Features

  • 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

Requirements

  • Docker or compatible container runtime

Usage

Docker Container

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 bash

Provide a name for easy reference. You can run multiple containers simultaneously for different AI agents.

Teardown

To remove the container and image:

docker rm -f dkc-lab && docker image rm dkc

Warning: This action cannot be undone.

Docker Compose

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 alive

Run the Docker Compose file:

docker compose -f ./dev/docker-compose.dev.yml up --build --detach

Finally, exec into the running container:

docker exec -it <container_id> bash

Run Docker in the Background (Suitable for ACP)

docker run --rm -d -t \
        --name dkc-claude-acp \
        -v $(pwd):/app \
        -w /app \
        ghcr.io/leoborai/dkc:latest

Using with ACP

Zed

You 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.

Notes

  • 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.

About

AI Developer-Kit Container

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors