DistributedApplicationBuilder.AddDockerfileBuilder
Method
type DistributedApplicationBuilder interface { // ... omitted for brevity AddDockerfileBuilder( name string, contextPath string, callback func(arg DockerfileBuilderCallbackContext), options ...*AddDockerfileBuilderOptions, ) ContainerResource}Signature
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().
Defined on
This method is defined on the following type: