Watch Aspire live streamsDocsTry Aspire

withBuildArg

Method
📦 Aspire.Hosting v13.6.5
interface ContainerResource {
// ... omitted for brevity
withBuildArg(
name: string,
value: string | ParameterResource): ContainerResource;
}

Signature

methodwithBuildArgbuilder
Adds a build argument when the container is built from a Dockerfile.
withBuildArg(
name: string,
value: string | ParameterResource): ContainerResource
namestringThe name of the build argument.
valuestring | ParameterResourceThe build argument value, either a string or a parameter resource.
ContainerResource

Applies to

This method applies to the following types: