[New article]: Add docs for PublishWithContainerFiles
Proposed topic or title
PublishWithContainerFiles
Location in table of contents.
No response
Reason for the article
With https://github.com/dotnet/aspire/pull/12265 we are adding support for PublishWithContainerFiles which allows backend resources to copy static files from frontend resources.
Generally, a resource can build a "build only" docker image, and advertise that it has files that can be copied out of that image. Then another resource can use those files and copy them into their resulting docker image.
Article abstract
Frontend Javascript resources can produce static files during deploy and other resources can copy those files into their produced docker image.
This allows python backends to serve javascript frontend static files.
Relevant searches
No response
This is also supported on .NET projects/CSharpApps - Add ContainerFilesDestinationAnnotation support to ProjectResource (dotnet/aspire#12355)
And on Yarp - Refactor YarpResource and add PublishWithStaticFiles method for Dockerfile (dotnet/aspire#12483)