Skip to content
DocsTry Aspire
DocsTry

DockerfileStage Constructors

ClassConstructors1 member
Represents a stage within a multi-stage Dockerfile.
Initializes a new instance of the DockerfileStage class.
public class DockerfileStage
{
public DockerfileStage(
string? stageName,
string imageReference)
{
// ...
}
}
stageNamestring?The optional stage name.
imageReferencestringThe base image reference.