WithDockerfileFactory
Method
func (ContainerResource) WithDockerfileFactory( contextPath string, dockerfileFactory func(arg DockerfileFactoryContext) string, options ...*WithDockerfileFactoryOptions,) ContainerResourceSignature
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().
Applies to
This method applies to the following types: