Skip to content
DocsTry Aspire
DocsTry

runWithMounts

Method
📦 Aspire.Hosting v13.4.0
interface DockerfileStage {
// ... omitted for brevity
runWithMounts(
command: string,
mounts: string[]): DockerfileStage;
}

Signature

methodrunWithMounts
Adds a RUN statement with mounts to a Dockerfile stage
runWithMounts(
command: string,
mounts: string[]): DockerfileStage
commandstring
mountsstring[]
DockerfileStage

Applies to

This method applies to the following types: