DockerfileStage.CopyFrom Method

Definition

Overloads

CopyFrom(String, String, String)

Adds a COPY statement to copy files from another stage.

CopyFrom(String, String, String, String)

Adds a COPY statement to copy files from another stage with ownership change.

CopyFrom(String, String, String)

Source:
DockerfileStage.cs

Adds a COPY statement to copy files from another stage.

public Aspire.Hosting.ApplicationModel.Docker.DockerfileStage CopyFrom(string from, string source, string destination);
member this.CopyFrom : string * string * string -> Aspire.Hosting.ApplicationModel.Docker.DockerfileStage
Public Function CopyFrom (from As String, source As String, destination As String) As DockerfileStage

Parameters

from
String

The source stage or image name.

source
String

The source path in the stage.

destination
String

The destination path.

Returns

The current stage.

Applies to

CopyFrom(String, String, String, String)

Source:
DockerfileStage.cs

Adds a COPY statement to copy files from another stage with ownership change.

public Aspire.Hosting.ApplicationModel.Docker.DockerfileStage CopyFrom(string stage, string source, string destination, string chown);
member this.CopyFrom : string * string * string * string -> Aspire.Hosting.ApplicationModel.Docker.DockerfileStage
Public Function CopyFrom (stage As String, source As String, destination As String, chown As String) As DockerfileStage

Parameters

stage
String

The source stage name.

source
String

The source path in the stage.

destination
String

The destination path.

chown
String

The ownership specification (e.g., "user:group").

Returns

The current stage.

Applies to