Guide
Each page solves one task. Skim for the one you need.
- Multi-stage builds copies artifacts from a build stage into a slim final image.
- BuildKit mounts scopes cache, secret, and bind mounts to the commands that need them.
- Smart apt installs packages, PPAs, and third-party repos without hand-writing
apt-get update. - The run builder composes one
RUNfrom Python, with dynamic commands, directory scoping, and file redirects. - Reusable helpers factors repeated setup into a context manager.
- Render from the CLI renders a recipe from the command line or from Python.
If you are new to docker-dsl, start with Getting Started.