Skip to content
Docs Try Aspire

DockerfileBaseImageAnnotation Properties

Class Properties 2 members
Represents an annotation for specifying custom base images in generated Dockerfiles.
BuildImage Section titled BuildImage nullable string?
Gets or sets the base image to use for the build stage in multi-stage Dockerfiles.
public string? BuildImage { get; set; }
This image is used during the build phase where dependencies are installed and the application is compiled or prepared. If not specified, the default build image for the resource type will be used.
RuntimeImage Section titled RuntimeImage nullable string?
Gets or sets the base image to use for the runtime stage in multi-stage Dockerfiles.
public string? RuntimeImage { get; set; }
This image is used for the final runtime stage where the application actually runs. If not specified, the default runtime image for the resource type will be used.