withContainerFiles

Method
📦 Aspire.Hosting v17.0.0
interface ContainerResource {
// ... omitted for brevity
withContainerFiles(
destinationPath: string,
sourcePath: string,
options?: ContainerFilesOptions): ContainerResource;
}

Signature

methodwithContainerFilesbuilder
Creates or updates files and folders in a container by copying them from a source path on the host.
withContainerFiles(
destinationPath: string,
sourcePath: string,
options?: ContainerFilesOptions): ContainerResource
destinationPathstringThe destination absolute path in the container.
sourcePathstringThe source path on the host to copy files from.
optionsContainerFilesOptionsoptionalOptions for the created or updated file system entries.
ContainerResource

Applies to

This method applies to the following types: