Share via


Build.Target Property

Definition

Specifies the target build stage to be used from a multi-stage Dockerfile. This property allows defining a specific target stage name, enabling partial builds and optimizing the build process by selecting only the required build stage.

[YamlDotNet.Serialization.YamlMember(Alias="target")]
public string? Target { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="target")>]
member this.Target : string with get, set
Public Property Target As String

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to