Share via


DockerfileBaseImageAnnotation Class

Definition

Represents an annotation for specifying custom base images in generated Dockerfiles.

public class DockerfileBaseImageAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation
type DockerfileBaseImageAnnotation = class
    interface IResourceAnnotation
Public Class DockerfileBaseImageAnnotation
Implements IResourceAnnotation
Inheritance
DockerfileBaseImageAnnotation
Implements

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.

Constructors

DockerfileBaseImageAnnotation()

Properties

BuildImage

Gets or sets the base image to use for the build stage in multi-stage Dockerfiles.

RuntimeImage

Gets or sets the base image to use for the runtime stage in multi-stage Dockerfiles.

Applies to