Skip to main content

Module types

Module types 

Source
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:

  1. Runtime template - shorthand like runtime: node22
  2. Single-stage - base: or build: + steps: at top level
  3. Multi-stage - stages: map (IndexMap for insertion order, last = output)
  4. WASM - wasm: configuration for WebAssembly builds

Structs§

ZCacheMount
A cache mount specification for RUN steps.
ZHealthcheck
Healthcheck configuration for the container.
ZImage
Top-level ZImagefile representation.
ZStage
A single build stage in a multi-stage ZImagefile.
ZStep
A single build instruction within a stage.
ZWasmConfig
WebAssembly build configuration for WASM mode.

Enums§

ZBuildContext
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.
ZCopySources
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.
ZPortSpec
A single port specification, either a bare port number or a port with protocol suffix.