ContainerResource.WithDockerfileBuilder
Method
type ContainerResource interface { // ... omitted for brevity WithDockerfileBuilder( contextPath string, callback func(arg DockerfileBuilderCallbackContext), options ...*WithDockerfileBuilderOptions, ) ContainerResource}Signature
method
WithDockerfileBuilder builderConfigures the resource to use a programmatically generated Dockerfile
WithDockerfileBuilder( contextPath string, callback func(arg DockerfileBuilderCallbackContext), options ...*WithDockerfileBuilderOptions,) ContainerResourceParameters
contextPath stringPath to be used as the context for the container image build.callbackfunc(arg DockerfileBuilderCallbackContext) callbackA callback that uses the DockerfileBuilder API to construct the Dockerfile.options...*WithDockerfileBuilderOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDockerfileBuilderOptions 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: