ContainerResource.WithDockerfileFactory
Method
type ContainerResource interface { // ... omitted for brevity WithDockerfileFactory( contextPath string, dockerfileFactory func(arg DockerfileFactoryContext) string, options ...*WithDockerfileFactoryOptions, ) ContainerResource}Signature
method
WithDockerfileFactory builderBuilds the specified container image from a Dockerfile generated by an asynchronous factory function.
WithDockerfileFactory( contextPath string, dockerfileFactory func(arg DockerfileFactoryContext) string, options ...*WithDockerfileFactoryOptions,) ContainerResourceParameters
contextPath stringPath to be used as the context for the container image build.dockerfileFactory func(arg DockerfileFactoryContext) string callbackAn asynchronous function that returns the Dockerfile content as a string.options...*WithDockerfileFactoryOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDockerfileFactoryOptions argument.
Stage*stringThe stage representing the image to be published in a multi-stage Dockerfile.Returns
ContainerResource The resource builder.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: