Skip to content
DocsTry Aspire
DocsTry

DockerfileBaseImageAnnotation Properties

ClassProperties2 members
Represents an annotation for specifying custom base images in generated Dockerfiles.
BuildImageSection titled BuildImagenullablestring?
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.
RuntimeImageSection titled RuntimeImagenullablestring?
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.