Skip to content
Docs Try Aspire
Docs Try

withDockerfileFactory

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

Signature

method withDockerfileFactory builder
Builds the specified container image from a Dockerfile generated by an asynchronous factory function.
withDockerfileFactory(contextPath: string, dockerfileFactory: (arg: DockerfileFactoryContext) => Promise<string>, stage?: string): ContainerResource
contextPath string
dockerfileFactory (arg: DockerfileFactoryContext) => Promise<string>
stage string optional
ContainerResource

Applies to

This method applies to the following types: