pub fn generate_dockerfile(
contract: &DeploymentContract,
identity: Option<&ContractIdentity>,
) -> StringAvailable on crate feature
deployment only.Expand description
Generate a Dockerfile from the deployment contract.
When native_deps is populated (via NativeDepsContract::for_rustlib_features),
the generated Dockerfile automatically includes custom APT repo setup and
runtime package installation. If native_deps is empty, only base utilities
are installed.
identity, when provided, stamps three io.hyperi.contract.* LABEL
lines on the image per the Contract Identity Annotation Scheme v1
(see ContractIdentity). Phase 1
rollout: optional; callers SHOULD pass Some(&identity). Phase 2 will
flip this to a required parameter.