ContainerFilesExtensions.AddContainerFilesStages Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds Dockerfile instructions to include container files from the specified resource into the Dockerfile build process.
public static Aspire.Hosting.ApplicationModel.Docker.DockerfileBuilder AddContainerFilesStages(this Aspire.Hosting.ApplicationModel.Docker.DockerfileBuilder builder, Aspire.Hosting.ApplicationModel.IResource resource, Microsoft.Extensions.Logging.ILogger? logger);
static member AddContainerFilesStages : Aspire.Hosting.ApplicationModel.Docker.DockerfileBuilder * Aspire.Hosting.ApplicationModel.IResource * Microsoft.Extensions.Logging.ILogger -> Aspire.Hosting.ApplicationModel.Docker.DockerfileBuilder
<Extension()>
Public Function AddContainerFilesStages (builder As DockerfileBuilder, resource As IResource, logger As ILogger) As DockerfileBuilder
Parameters
- builder
- DockerfileBuilder
The Dockerfile builder to which container file instructions will be added. Cannot be null.
- resource
- IResource
The resource containing container files to be added to the Dockerfile. Cannot be null.
- logger
- ILogger
An optional logger used to record warnings if container image names cannot be determined for source resources.
Returns
The same DockerfileBuilder instance with additional instructions for container files, enabling method chaining.