withDockerfileBaseImage

Method
📦 Aspire.Hosting v17.0.0
interface ContainerResource {
// ... omitted for brevity
withDockerfileBaseImage(
buildImage?: string,
runtimeImage?: string): IResource;
}

Signature

methodwithDockerfileBaseImagebuilder
Configures custom base images for generated Dockerfiles.
withDockerfileBaseImage(
buildImage?: string,
runtimeImage?: string): IResource
buildImagestringoptionalThe base image to use for the build stage. If null, uses the default build image.
runtimeImagestringoptionalThe base image to use for the runtime stage. If null, uses the default runtime image.
IResource

Applies to

This method applies to the following types: