Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Cmd

Method
📦 Aspire.Hosting v17.0.0
func (DockerfileStage) Cmd(command []string) DockerfileStage

Signature

methodCmd
Adds a CMD statement to a Dockerfile stage
Cmd(command []string) DockerfileStage
command[]string
DockerfileStage

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

Applies to

This method applies to the following types: