Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

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().

Applies to

This method applies to the following types: