Skip to content
Docs Try Aspire
Docs Try

withDockerfileBuilder

Method
📦 Aspire.Hosting v13.3.0
interface ContainerResource {
// ... omitted for brevity
withDockerfileBuilder(
contextPath: string,
callback: callback,
stage?: string): ContainerResource;
}

Signature

method withDockerfileBuilder builder
Configures the resource to use a programmatically generated Dockerfile
withDockerfileBuilder(contextPath: string, callback: (arg: DockerfileBuilderCallbackContext) => Promise<void>, stage?: string): ContainerResource
contextPath string
callback (arg: DockerfileBuilderCallbackContext) => Promise<void>
stage string optional
ContainerResource

Applies to

This method applies to the following types: