DockerfileBuildAnnotation
Class net10.0
Represents an annotation for customizing a Dockerfile build.
namespace Aspire.Hosting.ApplicationModel;
public class DockerfileBuildAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation{ // ...} 11 members
Constructors1
Section titled ConstructorsProperties9
Section titled PropertiesBuildArgumentsgetDictionary<string, object?> Gets the arguments to pass to the build.
BuildSecretsgetDictionary<string, object> Gets the secrets to pass to the build.
ContextPathgetstring Gets the path to the context directory for the build.
DockerfileFactoryget; initFunc<DockerfileFactoryContext, Task<string>> 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.
DockerfilePathgetstring Gets the path to the Dockerfile to use for the build.
HasEntrypointget; setbool Gets or sets a value indicating whether an entry point is defined in the Dockerfile.
ImageNameget; setstring? 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.
ImageTagget; setstring? 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.
Stagegetstring? Gets the name of the build stage to use for the build.