Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

arg

Method
📦 Aspire.Hosting v13.6.0
interface DockerfileBuilder {
// ... omitted for brevity
arg(
name: string,
defaultValue?: string): DockerfileBuilder;
}

Signature

methodarg
Adds a global ARG statement to the Dockerfile
arg(
name: string,
defaultValue?: string): DockerfileBuilder
namestring
defaultValuestringoptional
DockerfileBuilder

Applies to

This method applies to the following types: