In this video I show you to run a .Net Blazor Web Assembly application inside of docker. I go over how to set up the dockerfile, and how to server the site using nginx.
I also show how to correctly serve up the correct appsettings.json file depending on which environment you are building for.
#docker #programming #code
Blazor docs for setting the Environment using javascript:
https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/startup?view=aspnetcore-7.0
Docs page on the different methods for setting the Environment:
https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/environments?view=aspnetcore-7.0
Docs on sed, a stream editor:
https://www.gnu.org/software/sed/manual/sed.html
Follow me on social media!
Twitter: https://twitter.com/ScriptBytesIO
Instagram: https://www.instagram.com/scriptbytes/