Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

arg

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

Signature

methodarg
Adds an ARG statement to a Dockerfile stage
arg(
name: string,
defaultValue?: string): DockerfileStage
namestring
defaultValuestringoptional
DockerfileStage

Applies to

This method applies to the following types: