Skip to content
Docs Try Aspire

addDockerfile

Function
📦 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

Applies to

This function is an extension method on the following types: