withDockerfileBuilder
Method
interface ContainerResource { // ... omitted for brevity withDockerfileBuilder( contextPath: string, callback: callback, stage?: string): ContainerResource;}Signature
method
withDockerfileBuilder builderConfigures the resource to use a programmatically generated Dockerfile
withDockerfileBuilder(contextPath: string, callback: (arg: DockerfileBuilderCallbackContext) => Promise<void>, stage?: string): ContainerResourceParameters
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: