DockerfileStage.Copy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Copy(String, String) |
Adds a COPY statement to copy files from the build context. |
| Copy(String, String, String) |
Adds a COPY statement to copy files with ownership change. |
Copy(String, String)
- Source:
- DockerfileStage.cs
Adds a COPY statement to copy files from the build context.
public Aspire.Hosting.ApplicationModel.Docker.DockerfileStage Copy(string source, string destination);
member this.Copy : string * string -> Aspire.Hosting.ApplicationModel.Docker.DockerfileStage
Public Function Copy (source As String, destination As String) As DockerfileStage
Parameters
- source
- String
The source path or pattern.
- destination
- String
The destination path.
Returns
The current stage.
Applies to
Copy(String, String, String)
- Source:
- DockerfileStage.cs
Adds a COPY statement to copy files with ownership change.
public Aspire.Hosting.ApplicationModel.Docker.DockerfileStage Copy(string source, string destination, string chown);
member this.Copy : string * string * string -> Aspire.Hosting.ApplicationModel.Docker.DockerfileStage
Public Function Copy (source As String, destination As String, chown As String) As DockerfileStage
Parameters
- source
- String
The source path.
- destination
- String
The destination path.
- chown
- String
The ownership specification (e.g., "user:group").
Returns
The current stage.