Skip to content
Docs Try Aspire

DockerBuildArg Constructors

Class Constructors 1 member
Represents a name/value pair, used to satisfy the docker builder --build-arg <NAME>[=<VALUE>] command switch. For more information, see https://docs.docker.com/reference/cli/docker/image/build/#build-arg.
Represents a name/value pair, used to satisfy the docker builder --build-arg <NAME>[=<VALUE>] command switch. For more information, see https://docs.docker.com/reference/cli/docker/image/build/#build-arg.
public sealed class DockerBuildArg
{
public DockerBuildArg(
string name,
object? value = null)
{
// ...
}
}
name string The required name of the arg.
value object? optional The optional value of the arg, when omitted the value is populated from the corresponding environment variable.