Skip to content
Docs Try Aspire
Docs Try

ContainerFilesExtensions

Class static net8.0
📦 Aspire.Hosting v13.3.0
Provides Dockerfile builder extension methods for supporting ResourceBuilderExtensions.PublishWithContainerFiles.
namespace Aspire.Hosting.ApplicationModel.Docker;
public static class ContainerFilesExtensions
{
// ...
}
AddContainerFiles(DockerfileStage, IResource, string, ILogger?)extensionexperimentalats ignored
Adds COPY --from statements to the Dockerfile stage for container files from resources referenced by ContainerFilesDestinationAnnotation.
AddContainerFilesStages(DockerfileBuilder, IResource, ILogger?)extensionexperimentalats ignored
Adds Dockerfile instructions to include container files from the specified resource into the Dockerfile build process.
View all methods