DockerfileBaseImageAnnotation
Class net10.0
Represents an annotation for specifying custom base images in generated Dockerfiles.
namespace Aspire.Hosting.ApplicationModel;
public class DockerfileBaseImageAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation{ // ...}Remarks
Section titled Remarks This annotation allows developers to override the default base images used when generating Dockerfiles for resources. It supports specifying separate build-time and runtime base images for multi-stage builds.
Constructors1
Section titled ConstructorsProperties2
Section titled PropertiesBuildImageget; setstring? Gets or sets the base image to use for the build stage in multi-stage Dockerfiles.
RuntimeImageget; setstring? Gets or sets the base image to use for the runtime stage in multi-stage Dockerfiles.