Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide Officially-Supported .NET AOT Images #5020

Open
simonkurtz-MSFT opened this issue Nov 21, 2023 · 3 comments
Open

Provide Officially-Supported .NET AOT Images #5020

simonkurtz-MSFT opened this issue Nov 21, 2023 · 3 comments

Comments

@simonkurtz-MSFT
Copy link
Contributor

We just published container optimizations to the Azure Container Apps .NET Workshop. This workshop provides guidance to our customers using ACA & .NET. Since ACA is Linux only, building for a specific platform with AOT is very suitable and would provide great advantages in terms of storage, transfer, start-up (no JIT compiler) and, likely, memory footpring.

Presently, the AOT images are nightly images, which doesn't instill much confidence with customers looking for a stable version. Please consider providing periodic AOT images given all the benefits they provide.

Thank you!

@lbussell
Copy link
Contributor

lbussell commented Nov 21, 2023

Hi @simonkurtz-MSFT, thanks for the feedback!

If you are looking for a short-term, size efficient solution for publishing Native AOT apps, I'd encourage you to look at the releasesapi Debian sample.

In that Dockerfile, you can replace the SDK tag with the Jammy SDK and the runtime deps tag with the Jammy Chiseled runtime deps image to get almost all of the size reduction benefits. We cover this in the .NET sample image size report. The only difference between the runtime-deps and the runtime-deps AOT image is the presence of the libstdc++ library, which ends up being about a 1 MB (compressed) image size savings.

@zeroskyx
Copy link

zeroskyx commented Jan 5, 2025

Any news on this topic?

Both sdk:9.0-noble-aot and runtime-deps:9.0-noble-chiseled-aot seem to be pretty stable now. 😃

Keep up the great work!

@lbussell
Copy link
Contributor

lbussell commented Jan 6, 2025

@zeroskyx we currently plan to provide some form of officially-supported Native AOT images for .NET 10. They may not be exactly the same as the AOT images that we currently have in nightly, but there will an easy way to build and host Native AOT apps without installing extra packages for most use-cases. We are still working out what that will look like. You can watch this issue for the latest info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Current Release
Development

No branches or pull requests

3 participants