Skip to content
Docs Try Aspire

YarpResource.publishWithStaticFiles

Method
📦 Aspire.Hosting.Yarp v13.2.0-preview.1.26159.1
interface YarpResource {
// ... omitted for brevity
publishWithStaticFiles(resourceWithFiles: IResourceWithContainerFiles): YarpResource;
}

Signature

method publishWithStaticFiles builder
In publish mode, generates a Dockerfile that copies static files from the specified resource into /app/wwwroot.
publishWithStaticFiles(resourceWithFiles: IResourceWithContainerFiles): YarpResource
resourceWithFiles IResourceWithContainerFiles
YarpResource

Defined on

This method is defined on the following type: