ContainerResource.withDockerfileFactory
Method
interface ContainerResource { // ... omitted for brevity withDockerfileFactory(contextPath: string, dockerfileFactory: (arg: DockerfileFactoryContext) => Promise<string>, stage?: string): ContainerResource;}Signature
method
withDockerfileFactory builderBuilds the specified container image from a Dockerfile generated by an asynchronous factory function.
withDockerfileFactory(contextPath: string, dockerfileFactory: (arg: DockerfileFactoryContext) => Promise<string>, stage?: string): ContainerResourceParameters
contextPath stringPath to be used as the context for the container image build.dockerfileFactory (arg: DockerfileFactoryContext) => Promise<string> An asynchronous function that returns the Dockerfile content as a string.stagestringoptionalThe stage representing the image to be published in a multi-stage Dockerfile.Returns
ContainerResource Defined on
This method is defined on the following type: