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
26 changes: 23 additions & 3 deletions release-notes/10.0/preview/preview2/containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,28 @@

.NET 10 Preview 2 includes the following updates for container images:

- [Feature](#feature)
- [Native AOT images](#native-aot-images)

## Feature
## Native AOT SDK images

This is about the feature
Native AOT .NET apps have faster startup time, smaller memory footprints, and can run on machines that don't have the .NET runtime installed.
For .NET 10, we are publishing new .NET SDK image variants that support building [Native AOT](https://learn.microsoft.com/dotnet/core/deploying/native-aot) apps.

The images are intended for two primary scenarios:

- Building container images that contain a Native AOT app, using the SDK image in a multi-stage Dockerfile
- Building Native AOT .NET executables using the SDK image as a containerized build environment
Comment on lines +14 to +15
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm having a hard time understanding the difference between these two scenarios. Is there some subtlety I'm missing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first is for building a container image, and the second is for building binary executables that can be distributed by themselves. I took these bullets pretty much directly from dotnet/dotnet-docker#6312.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I was reading too much into it.


See the [.NET Native AOT Dockerfile samples](https://github.com/dotnet/dotnet-docker/tree/main/samples/releasesapi) for details on how to use the new Native AOT SDK images.

The following images have been added to the `dotnet/sdk` repo:

- `10.0-noble-preview-aot` (Also tagged as `10.0-preview-aot`)
- `10.0-preview-alpine-aot`
- `10.0-preview-azurelinux3.0-aot`
- `10.0-preview-trixie-aot`

For more information, see:

- [.NET 10 SDK AOT container images (Announcement)](https://github.com/dotnet/dotnet-docker/discussions/6312)
- [Provide Officially-Supported .NET AOT Images](https://github.com/dotnet/dotnet-docker/issues/5020)