WithDockerfile
Method
func (ContainerResource) WithDockerfile( contextPath string, options ...*WithDockerfileOptions,) ContainerResourceSignature
method
WithDockerfile builderCauses Aspire to build the specified container image from a Dockerfile.
WithDockerfile( contextPath string, options ...*WithDockerfileOptions,) ContainerResourceParameters
contextPath stringPath to be used as the context for the container image build.options...*WithDockerfileOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDockerfileOptions 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().
Applies to
This method applies to the following types: