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