Share via


DockerfileBuildAnnotation Class

Definition

Represents an annotation for customizing a Dockerfile build.

public class DockerfileBuildAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation
type DockerfileBuildAnnotation = class
    interface IResourceAnnotation
Public Class DockerfileBuildAnnotation
Implements IResourceAnnotation
Inheritance
DockerfileBuildAnnotation
Implements

Constructors

DockerfileBuildAnnotation(String, String, String)

Represents an annotation for customizing a Dockerfile build.

Properties

BuildArguments

Gets the arguments to pass to the build.

BuildSecrets

Gets the secrets to pass to the build.

ContextPath

Gets the path to the context directory for the build.

DockerfileFactory

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.

DockerfilePath

Gets the path to the Dockerfile to use for the build.

HasEntrypoint

Gets or sets a value indicating whether an entry point is defined in the Dockerfile.

ImageName

Gets or sets the image name for the generated container image. When set, this will be used as the container image name instead of the value from ContainerImageAnnotation.

ImageTag

Gets or sets the image tag for the generated container image. When set, this will be used as the container image tag instead of the value from ContainerImageAnnotation.

Stage

Gets the name of the build stage to use for the build.

Applies to