How To Containerize a .NET App Without a Dockerfile
HTML-код
- Опубликовано: 7 сен 2024
- 💻Get the source code: go.dotnetacade...
The way you containerize a .NET application via a Dockerfile has always been less than ideal because it does not take full advantage of the .NET build process.
So here I'll show you the new way to build Docker images for .NET apps without using any dockerfile.
🔥Become a Senior C# Backend Engineer: juliocasal.com...
🗺️Get My Free .NET Backend Developer Roadmap: juliocasal.com...
Join me on Patreon: / juliocasal
Follow me on LinkedIn: / juliocasal
Follow me on X: x.com/julioc
#docker #dotnet #aspnetcore #aspnet #dotnetcore
Good video, i spent two to creating a docker file for my Solution, having multiple projects inside it. Atleat do it with this video. Thankyou you video, it was great resours for me
Glad it helped!
It was nicely explained and was informative. Thank you for sharing it.
You're welcome!
Excellent Julio! Thank you for such timely information. I hated the docker files for the very reason that you have illustrated.
Yeah, while Docker is cool, you have to take so many steps and do way too much troubleshooting. I was used to publishing directly to a running a webhost in 1 click (taking only seconds of my time), then went to Docker, and could spend 30 minutes trying to figure out what else was going on. It's nice MS created this. Now if they could build in authentication, that'd be even better. A publish should take less than 30 seconds.
You are welcome!
Agree, publishing a web app should be very straightforward. They are working on improving the authentication story in the next release, crossing fingers!
Im So Glad I subscribed! I needed to see this so bad!
Thank You So Much Julio!!
You're welcome!
Thank you so much bro.....yo are a life saver
Glad to help!
How do we approach a docker-compose with this way of dealing since before we indicated the dockerfile in the docker-compose?
There's no docker-compose :)
HI Julio, well explained. How can we deal with https in this case? I have seen several examples and they all show simply http. The certificates tend to throw error messages when we use this approach.
Honestly, can't tell. I usually don't use https in my containers. Better left to the API Gateway.
which tools did you use at 8:18?
Tools?
@@juliocasal to highlight on the fly
very well explained. will it support window container image also ?
Thank you! Yes, Windows containers should be supported eventually.
@@juliocasal Happy to report that in version 0.4.0 of the package, Windows containers are fully-supported! You can use this version now, or wait for the 7.0.300 SDK in a month and a half or so.
@@ChetHusk That's awesome, thanks for the heads up Chet!
can you do a tutorial about jwt tokens and refresh tokens?
Kim, check out this one: ruclips.net/video/wVFfPrB5kEw/видео.html
Nice
Thanks!
Hi thank you for your nice video. I would like to build an avalonia app in docker image ? Any help . I have created a Dockerfile and docker-compose.yml having 2 services avalonia app and the weston graphical compositor but when I run docker compose up it does not schow my application
Sorry, this video is about dockerizing .NET apps with no dockerfile
HI Julio, well explained.
I have an error where the project is "Microsoft.NET.Sdk.Worker"
--> "C:\Program Files\dotnet\sdk\7.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(124,5): warning NETSDK1198: A publish profile with the name 'DefaultContainer' was not found in the project. Set the PublishProfile property to a valid file name.".
I have "DefaultContainer" on my "csproj" file.
It's ok for "Microsoft.NET.Sdk.Web" type project
Check out this for a worker project: learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container#publish-net-app