DockerfileBuildAnnotation.DockerfileFactory Property

Definition

Gets or sets the factory function that generates Dockerfile content dynamically. When set, this factory will be invoked to generate the Dockerfile content at build time, and the content will be written to a generated file path.

public Func<Aspire.Hosting.ApplicationModel.DockerfileFactoryContext,System.Threading.Tasks.Task<string>>? DockerfileFactory { get; init; }
member this.DockerfileFactory : Func<Aspire.Hosting.ApplicationModel.DockerfileFactoryContext, System.Threading.Tasks.Task<string>> with get, set
Public Property DockerfileFactory As Func(Of DockerfileFactoryContext, Task(Of String))

Property Value

Applies to