Build.CacheFrom Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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