withBindMount
Method
interface ContainerResource { // ... omitted for brevity withBindMount( source: string, target: string, isReadOnly?: boolean): ContainerResource;}Signature
method
withBindMount builderAdds a bind mount to a container resource.
withBindMount( source: string, target: string, isReadOnly?: boolean): ContainerResourceParameters
sourcestringThe source path of the mount. This is the path to the file or directory on the host, relative to the AppHost project directory.targetstringThe target path where the file or directory is mounted in the container.isReadOnly booleanoptional= FalseA flag that indicates if this is a read-only mount.Returns
ContainerResource Applies to
This method applies to the following types: