Skip to content
DocsTry Aspire
DocsTry

IDistributedApplicationBuilder.addDockerfile

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

Signature

methodaddDockerfilebuilder
Adds a Dockerfile to the application model that can be treated like a container resource.
addDockerfile(
name: string,
contextPath: string,
dockerfilePath?: string,
stage?: string): ContainerResource
namestring
contextPathstring
dockerfilePathstringoptional
stagestringoptional
ContainerResource

Defined on

This method is defined on the following type: