addDockerfileBuilder
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addDockerfileBuilder( name: string, contextPath: string, callback: callback, stage?: string): ContainerResource;}Signature
method
addDockerfileBuilder builderAdds a container resource built from a programmatically generated Dockerfile
addDockerfileBuilder(name: string, contextPath: string, callback: (arg: DockerfileBuilderCallbackContext) => Promise<void>, stage?: string): ContainerResourceParameters
namestringThe name of the resource.contextPath stringPath to be used as the context for the container image build.callback(arg: DockerfileBuilderCallbackContext) => Promise<void> A callback that uses the `DockerfileBuilder` API to construct the Dockerfile.stagestringoptionalThe stage representing the image to be published in a multi-stage Dockerfile.Returns
ContainerResource Applies to
This method applies to the following types: