



Add the container support package to the project.It can take a few as three commands to create a new application and publish it as an image: dotnet new webapiĭotnet add package ĭotnet publish -c Release -r linux-圆4 -no-self-contained -p PublishProfile=DefaultContainer The tools to do this do a bunch of inference based on the properties of your project and its outputs, and then create the same image that a simple Dockerfile would create. NET SDK gained the ability to create container images via the dotnet publish command. What’s all this again?īefore we dig deep into the changes in this version, it may be helpful to review where we stand today. If you’re eager to get started, you can skip ahead. In this post we’ll talk about all of these features, new to version 0.3.2 of the package, as well as the roadmap for the future of. We’ve also invested in making it easier to get started with the new container tooling. NET 7.0.200 SDK, we’ve expanded on that support to enable pushing to authenticated registries, targeting cross-architecture container images, and made it easier than ever to support rootless containers. Back in August we announced support for building container images directly from the.
