Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

DockerfileBaseImageAnnotation

Classnet10.0
📦 Aspire.Hosting v13.5.4
Represents an annotation for specifying custom base images in generated Dockerfiles.
namespace Aspire.Hosting.ApplicationModel;
public class DockerfileBaseImageAnnotation
: Aspire.Hosting.ApplicationModel.IResourceAnnotation
{
// ...
}
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.
View all constructors
View all properties