Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Copy

Method
📦 Aspire.Hosting v17.0.0
func (DockerfileStage) Copy(
source string,
destination string,
options ...*CopyOptions,
) DockerfileStage

Signature

methodCopy
Adds a COPY statement to a Dockerfile stage
Copy(
source string,
destination string,
options ...*CopyOptions,
) DockerfileStage
sourcestring
destinationstring
options...*CopyOptionsOptional settings, described under Options.

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

Chown*string
DockerfileStage

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

Applies to

This method applies to the following types: