Skip to content
Docs Try Aspire
Docs Try

withDockerfile

Method
📦 Aspire.Hosting v13.2.0
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

Applies to

This method applies to the following types: