Skip to content
Docs Try Aspire
Docs Try

ContainerResource.withDockerfile

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... omitted for brevity
withDockerfile(
contextPath: string,
dockerfilePath?: string,
stage?: string): ContainerResource;
}

Signature

method withDockerfile builder
Causes Aspire to build the specified container image from a Dockerfile.
withDockerfile(
contextPath: string,
dockerfilePath?: string,
stage?: string): ContainerResource
contextPath string
dockerfilePath string optional
stage string optional
ContainerResource

Defined on

This method is defined on the following type: