These libraries are experimental. APIs may change without notice. Generated from source on 6/15/2026.

Docker

@korulang/docker - Docker DSL for Koru

@koru/docker

@korulang/docker - Docker DSL for Koru Declarative image definitions and typed container lifecycle. Phantom obligations ensure containers are properly stopped. DECLARATIVE IMAGES: ~koru/docker:image(tag: "myapp:latest") { FROM alpine:3.18 COPY zig-out/bin/main /usr/local/bin/myapp CMD ["myapp"] } CONDITIONAL IMAGES (build flags): ~[build("prod")]koru/docker:image(tag: "myapp:latest") { FROM alpine:3.18 COPY zig-out/bin/main /usr/local/bin/myapp CMD ["myapp"] } ~[build("dev")]koru/docker:image(tag: "myapp:latest") { FROM alpine:3.18 RUN apk add --no-cache gdb strace COPY zig-out/bin/main /usr/local/bin/myapp CMD ["myapp", "--debug"] } Then run: koruc main.kz --build=prod docker build This generates Dockerfiles and builds all declared images matching the flag.