Skip to content
Docs Try Aspire

ContainerResource.withDockerfile

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

Signature

method withDockerfile builder
Configures the resource to use 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: