Build from source
Kova’s published GHCR image is built directly from Dockerfile in the repository root. Build it yourself if you need custom patches or want to develop locally.
Prerequisites
Section titled “Prerequisites”- Docker Buildx (with
DOCKER_BUILDKIT=1), for building the multi-stage container image. - Bun 1.4+ (
bun@1.4.5pinned inpackage.json), for running tests or the local development servers.
Build and run the Docker image
Section titled “Build and run the Docker image”git clone https://github.com/rushlightlab/kova.gitcd kovacp .env.example .env# Generate a 32-byte key with `openssl rand -hex 32` and set KOVA_ENCRYPTION_KEY in .envdocker build -t kova:local .The Dockerfile runs four stages—dependency install (oven/bun:1.4.5-alpine), Vite + React Compiler SPA build, Bun server bundle, and a minimal oven/bun:1.4.5-distroless runtime running as nonroot (65532:65532). You can also run the test stage inside Docker before packing:
docker build --target test -t kova:test .Start your local build with hardened flags and --env-file .env:
docker run -d --name kova \ --read-only --tmpfs /tmp \ --cap-drop ALL --security-opt no-new-privileges:true \ -p 127.0.0.1:3000:3000 \ -v kova_data:/data \ --env-file .env \ kova:localDevelopment servers
Section titled “Development servers”To run Kova in watch mode without Docker:
bun installcp .env.example .env# Generate and set KOVA_ENCRYPTION_KEY in .envbun run devTurborepo starts:
@kova/serverAPI onhttp://localhost:3000(with SQLite stored atKOVA_DB_PATH)@kova/webVite dev server onhttp://localhost:5173(proxying/api/*and/s/*to:3000)
Run the full workspace verification suite anytime with:
bun run format:checkbun run lintbun run typecheckbun run testbun run build