docs-aspire icon indicating copy to clipboard operation
docs-aspire copied to clipboard

[New article]: Add docs for PublishWithContainerFiles

Open eerhardt opened this issue 2 months ago • 1 comments

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

eerhardt avatar Oct 24 '25 00:10 eerhardt