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

Комментарии • 31

  • @musaleem2
    @musaleem2 9 месяцев назад +1

    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

  • @alireza136211
    @alireza136211 Год назад +1

    It was nicely explained and was informative. Thank you for sharing it.

  • @ameetjayawant4114
    @ameetjayawant4114 Год назад +1

    Excellent Julio! Thank you for such timely information. I hated the docker files for the very reason that you have illustrated.

    • @davestorm6718
      @davestorm6718 Год назад

      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.

    • @juliocasal
      @juliocasal  Год назад

      You are welcome!

    • @juliocasal
      @juliocasal  Год назад +1

      Agree, publishing a web app should be very straightforward. They are working on improving the authentication story in the next release, crossing fingers!

  • @ta-cvig
    @ta-cvig Год назад

    Im So Glad I subscribed! I needed to see this so bad!
    Thank You So Much Julio!!

  • @okunlolaoluwaseun4390
    @okunlolaoluwaseun4390 Год назад

    Thank you so much bro.....yo are a life saver

  • @Guillen8606
    @Guillen8606 Год назад +1

    How do we approach a docker-compose with this way of dealing since before we indicated the dockerfile in the docker-compose?

    • @juliocasal
      @juliocasal  Год назад

      There's no docker-compose :)

  • @Guillen8606
    @Guillen8606 Год назад

    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.

    • @juliocasal
      @juliocasal  Год назад +1

      Honestly, can't tell. I usually don't use https in my containers. Better left to the API Gateway.

  • @kenjiobara
    @kenjiobara 5 месяцев назад +1

    which tools did you use at 8:18?

    • @juliocasal
      @juliocasal  5 месяцев назад

      Tools?

    • @kenjiobara
      @kenjiobara 5 месяцев назад

      @@juliocasal to highlight on the fly

  • @RRR10
    @RRR10 Год назад

    very well explained. will it support window container image also ?

    • @juliocasal
      @juliocasal  Год назад

      Thank you! Yes, Windows containers should be supported eventually.

    • @ChetHusk
      @ChetHusk Год назад

      @@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.

    • @juliocasal
      @juliocasal  Год назад

      @@ChetHusk That's awesome, thanks for the heads up Chet!

  • @kimrobertrozen5609
    @kimrobertrozen5609 Год назад

    can you do a tutorial about jwt tokens and refresh tokens?

    • @juliocasal
      @juliocasal  Год назад

      Kim, check out this one: ruclips.net/video/wVFfPrB5kEw/видео.html

  • @manojlobo5099
    @manojlobo5099 Год назад

    Nice

  • @user-xg7hi5mh3g
    @user-xg7hi5mh3g 2 месяца назад

    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

    • @juliocasal
      @juliocasal  2 месяца назад

      Sorry, this video is about dockerizing .NET apps with no dockerfile

  • @abdelhakimbensalah1776
    @abdelhakimbensalah1776 Год назад +1

    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

    • @juliocasal
      @juliocasal  Год назад

      Check out this for a worker project: learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container#publish-net-app