Skip to content
Docs Try Aspire
Docs Try

from

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

Signature

method from
Adds a FROM statement to start a Dockerfile stage
from(
image: string,
stageName?: string): DockerfileStage
image string
stageName string optional
DockerfileStage

Applies to

This method applies to the following types: