Skip to content
DocsTry Aspire
DocsTry

DockerfileBuildAnnotation Constructors

ClassConstructors1 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)
{
// ...
}
}
contextPathstringThe path to the context directory for the build.
dockerfilePathstringThe path to the Dockerfile to use for the build.
stagestring?The name of the build stage to use for the build.