Skip to content
Docs Try Aspire

IDistributedApplicationBuilder.addDockerfile

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

Signature

method addDockerfile builder
Adds a container resource built from a Dockerfile
addDockerfile(
name: string,
contextPath: string,
dockerfilePath?: string,
stage?: string): ContainerResource
name string
contextPath string
dockerfilePath string optional
stage string optional
ContainerResource

Defined on

This method is defined on the following type: