AddDockerfileBuilder
Method
func (DistributedApplicationBuilder) AddDockerfileBuilder( name string, contextPath string, callback func(arg DockerfileBuilderCallbackContext), options ...*AddDockerfileBuilderOptions,) ContainerResourceSignature
method
AddDockerfileBuilder builderAdds a container resource built from a programmatically generated Dockerfile
AddDockerfileBuilder( name string, contextPath string, callback func(arg DockerfileBuilderCallbackContext), options ...*AddDockerfileBuilderOptions,) ContainerResourceParameters
namestringThe name of the resource.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...*AddDockerfileBuilderOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddDockerfileBuilderOptions 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: