Skip to content
Docs Try Aspire

withDockerfileBaseImage

Function
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface ContainerResource {
// ... omitted for brevity
withDockerfileBaseImage(
buildImage?: string,
runtimeImage?: string): IResource;
}

Signature

method withDockerfileBaseImage builder
Sets the base image for a Dockerfile build
withDockerfileBaseImage(
buildImage?: string,
runtimeImage?: string): IResource
buildImage string optional
runtimeImage string optional
IResource

Applies to

This function is an extension method on the following types: