Skip to content
DocsTry Aspire
DocsTry

from

Method
📦 Aspire.Hosting v13.4.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: