DockerfileBuildAnnotation Methods
Class Methods 1 member
Represents an annotation for customizing a Dockerfile build.
MaterializeDockerfileAsync(DockerfileFactoryContext, CancellationToken) Section titled MaterializeDockerfileAsync(DockerfileFactoryContext, CancellationToken) Task Materializes the Dockerfile from the factory if it hasn't been materialized yet. This method is thread-safe and ensures the Dockerfile is only written once.
public class DockerfileBuildAnnotation{ public Task MaterializeDockerfileAsync( DockerfileFactoryContext context, CancellationToken cancellationToken) { // ... }}Parameters
context DockerfileFactoryContext The context containing services and resource information. cancellationToken CancellationToken The cancellation token. Returns
Task A task representing the asynchronous operation.