DockerfileBaseImageAnnotation Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |