Skip to content
Docs Try Aspire
Docs Try

addDockerfileBuilder

Method
📦 Aspire.Hosting v13.3.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addDockerfileBuilder(
name: string,
contextPath: string,
callback: callback,
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

Applies to

This method applies to the following types: