Share via


DockerfileStage.Arg Method

Definition

Overloads

Arg(String)

Adds an ARG statement to define a build-time variable.

Arg(String, String)

Adds an ARG statement to define a build-time variable with a default value.

Arg(String)

Source:
DockerfileStage.cs

Adds an ARG statement to define a build-time variable.

public Aspire.Hosting.ApplicationModel.Docker.DockerfileStage Arg(string name);
member this.Arg : string -> Aspire.Hosting.ApplicationModel.Docker.DockerfileStage
Public Function Arg (name As String) As DockerfileStage

Parameters

name
String

The name of the build argument.

Returns

The current stage.

Applies to

Arg(String, String)

Source:
DockerfileStage.cs

Adds an ARG statement to define a build-time variable with a default value.

public Aspire.Hosting.ApplicationModel.Docker.DockerfileStage Arg(string name, string defaultValue);
member this.Arg : string * string -> Aspire.Hosting.ApplicationModel.Docker.DockerfileStage
Public Function Arg (name As String, defaultValue As String) As DockerfileStage

Parameters

name
String

The name of the build argument.

defaultValue
String

The default value for the build argument.

Returns

The current stage.

Applies to