Skip to content
DocsTry Aspire
DocsTry

ContainerResource.withDockerfileFactory

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... omitted for brevity
withDockerfileFactory(contextPath: string, dockerfileFactory: (arg: DockerfileFactoryContext) => Promise<string>, stage?: string): ContainerResource;
}

Signature

methodwithDockerfileFactorybuilder
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
contextPathstring
dockerfileFactory(arg: DockerfileFactoryContext) => Promise<string>
stagestringoptional
ContainerResource

Defined on

This method is defined on the following type: