withDockerfile
Method
interface ContainerResource { // ... omitted for brevity withDockerfile( contextPath: string, dockerfilePath?: string, stage?: string): ContainerResource;}Signature
method
withDockerfilebuilderCauses Aspire to build the specified container image from a Dockerfile.
withDockerfile( contextPath: string, dockerfilePath?: string, stage?: string): ContainerResourceParameters
contextPathstringdockerfilePathstringoptionalstagestringoptionalReturns
ContainerResourceApplies to
This method applies to the following types: