Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

from

Method
📦 Aspire.Hosting v13.6.0
interface DockerfileBuilder {
// ... omitted for brevity
from(
image: string,
stageName?: string): DockerfileStage;
}

Signature

methodfrom
Adds a FROM statement to start a Dockerfile stage
from(
image: string,
stageName?: string): DockerfileStage
imagestring
stageNamestringoptional
DockerfileStage

Applies to

This method applies to the following types: