Dalec: Declarative Packages and Containers with BuildKit
Shriira Press
One declarative YAML spec, and
docker build, turns source code into signed system packages and minimal containers across Linux distributions and Windows.
Welcome to Dalec: Declarative Packages and Containers with BuildKit.
Dalec is a CNCF sandbox project, originally created at Microsoft, that lets you describe how to build a software package once and then produce native RPMs and DEBs, distroless container images, and Windows artifacts from that single description. It is a BuildKit frontend, which means it slots directly into docker build with nothing more than a syntax line at the top of a YAML file: no bespoke packaging toolchains, no sprawling multi-stage Dockerfiles, no separate scripts for each distribution. This book begins with the packaging problem Dalec was built to solve and how a frontend reshapes the build, then walks through the anatomy of a spec, the source and patching model, the build and dependency system, the artifacts and image configuration that produce real packages and slim containers, the built-in tests that validate them, and the supply-chain features — signing, SBOMs, provenance, and reproducibility — that make the output trustworthy. A closing chapter steps back to look at adoption, multi-distribution strategy, and where Dalec fits among the tools you already run. Throughout, the examples are real Dalec specs you can build today.
This title is part of the ShriIra library and is free to read in full, right here — our small contribution to making world-class knowledge easy to reach.
A note on reading it: open the Contents menu at the top of the reader to jump between chapters, use the Aa menu to set a comfortable text size, theme (light, sepia, or night), and single- or two-page layout. Your place is saved automatically, so you can always pick up where you left off.
We hope it serves you well.
— Shriira Press