共用方式為


DockerfileBuildAnnotation(String, String, String) Constructor

Definition

Represents an annotation for customizing a Dockerfile build.

public DockerfileBuildAnnotation (string contextPath, string dockerfilePath, string? stage);
new Aspire.Hosting.ApplicationModel.DockerfileBuildAnnotation : string * string * string -> Aspire.Hosting.ApplicationModel.DockerfileBuildAnnotation
Public Sub New (contextPath As String, dockerfilePath As String, stage As String)

Parameters

contextPath
String

The path to the context directory for the build.

dockerfilePath
String

The path to the Dockerfile to use for the build.

stage
String

The name of the build stage to use for the build.

Applies to