Skip to content
Docs Try Aspire
Docs Try

DockerfileBuilder.arg

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

Signature

method arg
Adds a global ARG statement to the Dockerfile
arg(
name: string,
defaultValue?: string): DockerfileBuilder
name string
defaultValue string optional
DockerfileBuilder

Defined on

This method is defined on the following type: