Skip to content
Docs Try Aspire

ContainerFilesExtensions

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