DockerfileStage.RunWithMounts(String, String[]) 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.
Adds a RUN statement with mount options for BuildKit.
public Aspire.Hosting.ApplicationModel.Docker.DockerfileStage RunWithMounts(string command, params string[] mounts);
member this.RunWithMounts : string * string[] -> Aspire.Hosting.ApplicationModel.Docker.DockerfileStage
Public Function RunWithMounts (command As String, ParamArray mounts As String()) As DockerfileStage
Parameters
- command
- String
The command to execute.
- mounts
- String[]
The mount options (e.g., "type=cache,target=/root/.cache").
Returns
The current stage.