In this tutorial I show you how to build a Docker image from a .NET Core project using a multi-stage Dockerfile, run the container, and push the image to Docker Hub. This example works with .NET Core 3.1, .NET 5 and .NET 6 onwards. Source code: ☕️ Support us with a coffee! (Or.. beer 🍺) Official Microsoft .NET Core SDK and Runtime images: 📧 📫 Join us on our developer journey! Sign up to our email newsletter: 🐦 Follow us on Twitter: 🎶 Music by Epidemic Sound: 0:00 Intro 0:59 dotnet run 1:25 Multi-stage Dockerfile 4:20 Build 5:15 Run 6:00 Push 6:20 Question of the day! 6:48 Outro Icons in this video kindly provided by FlatIcon from Freepik Disclaimer - some of our links are affiliate links, which means that we receive a small commission for any sales made via those links, at no extra cost to you - so a great way to support our channel! Thank you so much for your support 😊











