Expand description
ZImagefile types - YAML-based image build format
This module defines all serde-deserializable types for the ZImagefile format,
an alternative to Dockerfiles using YAML syntax. The format supports four
mutually exclusive build modes:
- Runtime template - shorthand like
runtime: node22 - Single-stage -
base:orbuild:+steps:at top level - Multi-stage -
stages:map (IndexMapfor insertion order, last = output) - WASM -
wasm:configuration for WebAssembly builds
Structs§
- ZCache
Mount - A cache mount specification for RUN steps.
- ZHealthcheck
- Healthcheck configuration for the container.
- ZImage
- Top-level
ZImagefilerepresentation. - ZStage
- A single build stage in a multi-stage
ZImagefile. - ZStep
- A single build instruction within a stage.
- ZWasm
Config - WebAssembly build configuration for WASM mode.
Enums§
- ZBuild
Context - Build context for building a base image from a local Dockerfile or
ZImagefile. - ZCommand
- A command that can be specified as either a shell string or an exec-form array of strings.
- ZCopy
Sources - Source specification for copy/add steps. Can be a single path or multiple.
- ZExpose
- Port exposure specification. Can be a single port or multiple port specs.
- ZPort
Spec - A single port specification, either a bare port number or a port with protocol suffix.