Skip to content
Docs Try Aspire
Docs Try

IDistributedApplicationBuilder.addDockerfileBuilder

Method
📦 Aspire.Hosting v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addDockerfileBuilder(name: string, contextPath: string, callback: (arg: DockerfileBuilderCallbackContext) => Promise<void>, stage?: string): ContainerResource;
}

Signature

method addDockerfileBuilder builder
Adds a container resource built from a programmatically generated Dockerfile
addDockerfileBuilder(name: string, contextPath: string, callback: (arg: DockerfileBuilderCallbackContext) => Promise<void>, stage?: string): ContainerResource
name string
contextPath string
callback (arg: DockerfileBuilderCallbackContext) => Promise<void>
stage string optional
ContainerResource

Defined on

This method is defined on the following type: