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: https://github.com/chrismroberts/csha...
☕️ Support us with a coffee! (Or.. beer 🍺)
https://www.buymeacoffee.com/Robertsd...
Official Microsoft .NET Core SDK and Runtime images:
https://hub.docker.com/_/microsoft-do...
📧 📫 Join us on our developer journey! Sign up to our email newsletter:
https://robertsdevtalk.com
🐦 Follow us on Twitter:
/ robertsdevtalk
🎶 Music by Epidemic Sound:
https://www.epidemicsound.com/referra...
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
https://www.freepik.com
https://www.flaticon.com
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 😊