How to create a small and secure .NET 6 Web API docker image

Опубликовано: 05 Август 2026
на канале: Rüdiger Weritz
7,667
162

Within this tutorial we will:
-Generate a .NET 6 Web API based on the default template
-Add Docker support with a generated Dockerfile
-Improve the size and security of the final image by improving the Dockerfile
-Scan the different docker images with trivy to check how much CVEs are detected

The tutorial code can be found here:
https://github.com/rweritz/DemoApi