Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Resource.WithDockerfileBaseImage

Method
📦 Aspire.Hosting v17.0.0
func (Resource) WithDockerfileBaseImage(options ...*WithDockerfileBaseImageOptions) Resource

Signature

methodWithDockerfileBaseImagebuilder
Configures custom base images for generated Dockerfiles.
WithDockerfileBaseImage(options ...*WithDockerfileBaseImageOptions) Resource
options...*WithDockerfileBaseImageOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithDockerfileBaseImageOptions argument.

BuildImage*stringThe base image to use for the build stage. If null, uses the default build image.
RuntimeImage*stringThe base image to use for the runtime stage. If null, uses the default runtime image.
Resource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

Applies to

This function applies to the following types: