addDockerfile
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addDockerfile( name: string, contextPath: string, dockerfilePath?: string, stage?: string): ContainerResource;}Signature
method
addDockerfile builderAdds a Dockerfile to the application model that can be treated like a container resource.
addDockerfile( name: string, contextPath: string, dockerfilePath?: string, stage?: string): ContainerResourceParameters
namestringThe name of the resource.contextPath stringPath to be used as the context for the container image build.dockerfilePath stringoptionalPath to the Dockerfile relative to the `contextPath`. Defaults to "Dockerfile" if not specified.stagestringoptionalThe stage representing the image to be published in a multi-stage Dockerfile.Returns
ContainerResource Applies to
This method applies to the following types: