Reference
Entry points
Declare config and render a recipe into a Dockerfile.
- Dockerfile
-
Renders a recipe module into Dockerfile text.
- BuildContext
-
Recipe-facing handle for config fields, exported as
context. - rendering()
-
Report whether a render pass is in progress.
The run builder
Accumulate shell commands into one RUN instruction.
- RunBuilder
-
Accumulates shell commands into a single
RUNinstruction. - AptMixin
-
AptMixin(*, apt_updated: ‘bool’ = False, apt_dirty: ‘bool’ = True)
- RedirectableCmd
-
A pending
echoawaiting a redirect target. - CdScope
-
A
cdthat optionally restores the previous directory. - CmdInvoker
-
A bound shell binary, produced by
RunBuilder’s attribute dispatch.
Introspection
Query the active build during a render pass.
- current_stage()
-
Return the stage of the innermost open
with Stage(...)block.