Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

CopyFrom

Method
📦 Aspire.Hosting v17.0.0
func (DockerfileStage) CopyFrom(
from string,
source string,
destination string,
options ...*CopyFromOptions,
) DockerfileStage

Signature

methodCopyFrom
Adds a COPY --from statement to a Dockerfile stage
CopyFrom(
from string,
source string,
destination string,
options ...*CopyFromOptions,
) DockerfileStage
fromstring
sourcestring
destinationstring
options...*CopyFromOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*CopyFromOptions argument.

Chown*string
DockerfileStage

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: