pub async fn build(
resolved: &ResolvedSpec,
strategy: &PackingStrategy,
popularity: Option<&PopularityMap>,
catalog: Option<&LayerCatalog>,
) -> Result<OciImage>Expand description
Build an OciImage from a ResolvedSpec.
Each package in the spec becomes one OCI layer (or a group when packing is enabled). A base OS layer (defaults to debian:12-slim) is prepended so the container has the dynamic linker and glibc that conda binaries require.
When catalog is provided and strategy is CatalogAware, packages with
existing catalog entries get priority for solo layers. After the build,
call catalog_updates_from_image() to collect new entries to write back.