DistributedApplicationBuilder.AddDockerfile
Method
type DistributedApplicationBuilder interface { // ... omitted for brevity AddDockerfile( name string, contextPath string, options ...*AddDockerfileOptions, ) ContainerResource}Signature
method
AddDockerfile builderAdds a Dockerfile to the application model that can be treated like a container resource.
AddDockerfile( name string, contextPath string, options ...*AddDockerfileOptions,) ContainerResourceParameters
namestringThe name of the resource.contextPath stringPath to be used as the context for the container image build.options...*AddDockerfileOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddDockerfileOptions argument.
DockerfilePath *stringPath to the Dockerfile relative to the contextPath . Defaults to "Dockerfile" if not specified.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: