Share via


Build.CacheFrom Property

Definition

Gets or sets a list of cache sources to be used during the build process. This property corresponds to the "cache_from" field in a Docker Compose build configuration and allows specifying external images or sources to use as a cache for layers during Docker image builds.

[YamlDotNet.Serialization.YamlMember(Alias="cache_from", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)]
public System.Collections.Generic.List<string> CacheFrom { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="cache_from", DefaultValuesHandling=YamlDotNet.Serialization.DefaultValuesHandling.OmitEmptyCollections)>]
member this.CacheFrom : System.Collections.Generic.List<string> with get, set
Public Property CacheFrom As List(Of String)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to