Skip to content
DocsTry Aspire
DocsTry

copyFrom

Method
📦 Aspire.Hosting v13.4.0
interface DockerfileStage {
// ... omitted for brevity
copyFrom(
from: string,
source: string,
destination: string,
chown?: string): DockerfileStage;
}

Signature

methodcopyFrom
Adds a COPY --from statement to a Dockerfile stage
copyFrom(
from: string,
source: string,
destination: string,
chown?: string): DockerfileStage
fromstring
sourcestring
destinationstring
chownstringoptional
DockerfileStage

Applies to

This method applies to the following types: