Skip to main content

Docker Build

Properties

PropertyTypeRequiredDescriptionDefaultExample
dockerfilestring✅ Yespath to the Dockerfile Path to the Dockerfile to build. Supports external file sources: HTTP(S) URLs (https://example.com/Dockerfile), git repositories (git::https://github.com/org/repo//Dockerfile-"Dockerfile"
env_varsobjectNobuild environment variables Map of environment variables to pass to the Docker build command. Available during the build process. Supports Go templating-"GOLANG_VERSION"
public_repoPublicRepoConfigNopublic repository containing Dockerfile Clone a public GitHub repository containing the Dockerfile and build context. Requires repo, branch, and optionally directory--
connected_repoConnectedRepoConfigNoconnected repository containing Dockerfile Use a Nuon-connected repository containing the Dockerfile and build context. Requires repo, branch, and optionally directory--
sourceobjectNosource path or URL Optional source path or URL for the component configuration. Supports HTTP(S) URLs, git repositories, file paths, and relative paths (./). Examples: https://example.com/config.ya--
typeobjectNocomponent type--
nameobjectNocomponent name--
var_nameobjectNovariable name for component output Optional name to use when storing component outputs as variables. If not specified, uses the component name--
dependenciesobjectNocomponent dependencies List of other components that must be deployed before this component. Automatically extracted from template references--

Property Details

dockerfile

Examples:
"Dockerfile"
"docker/Dockerfile.prod"
"https://github.com/myorg/myrepo/raw/main/Dockerfile"

env_vars

Examples:
"GOLANG_VERSION"
"NODE_ENV"