Page 1 of 1

.Net7 + Docker Container

Posted: Thu Jun 01, 2023 3:07 pm
by rsbr

Hi,
Generating from ASP.NET MAKER 2023.3 with BROWSE afterwards works fine.

But when trying to containerize the app using the guide lines in a YoutTube video (third party) nothing works.

dotnet add package Microsoft.NET.Build.Containers
dotnet publish --os linux --arch x64 -c Release -p:PublishProfile=DefaultContainer
docker run -it --rm -p 5500:80 aspnetmaker2023:1.0.0

Did anyone try this? any advice to make this work.

Regards,


Re: .Net7 + Docker Container

Posted: Fri Jun 02, 2023 8:00 am
by MichaelG

Have not tried this but you may want to read:
https://learn.microsoft.com/en-us/aspne ... etcore-7.0