Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/api/create_docker_container.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ _ = new ContainerBuilder()

```csharp title="Copying a file"
_ = new ContainerBuilder()
.WithResourceMapping(new FileInfo("appsettings.json"), "/app/");
# copy to the `/app` directory
.WithResourceMapping(new FileInfo("appsettings.json"), "/app")

# copy to a specific file
.WithResourceMapping(new FileInfo("appsettings.Container.json"), new FileInfo("/app/appsettings.Developer.json"));
```

Another overloaded member of the container builder API allows you to copy the contents of a byte array to a specific file path within the container. This can be useful when you already have the file content stored in memory or when you need to dynamically generate the file content before copying it.
Expand Down