Skip to content
Docs Try Aspire

DockerfileBuildAnnotation Constructors

Class Constructors 1 member
Represents an annotation for customizing a Dockerfile build.
Constructor(string, string, string?) Section titled Constructor(string, string, string?)
Represents an annotation for customizing a Dockerfile build.
public class DockerfileBuildAnnotation
{
public DockerfileBuildAnnotation(
string contextPath,
string dockerfilePath,
string? stage)
{
// ...
}
}
contextPath string The path to the context directory for the build.
dockerfilePath string The path to the Dockerfile to use for the build.
stage string? The name of the build stage to use for the build.