Skip to content
Docs Try Aspire
Docs Try

cmd

Method
📦 Aspire.Hosting v13.3.0
interface DockerfileStage {
// ... omitted for brevity
cmd(command: string[]): DockerfileStage;
}

Signature

method cmd
Adds a CMD statement to a Dockerfile stage
cmd(command: string[]): DockerfileStage
command string[]
DockerfileStage

Applies to

This method applies to the following types: