Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

RunWithMounts

Method
📦 Aspire.Hosting v17.0.0
func (DockerfileStage) 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
mounts[]string
DockerfileStage

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

Applies to

This method applies to the following types: