Dotnet Publish Command Customization #5735
Replies: 2 comments 1 reply
-
Any answer? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Examples on how to run an ASP.NET Core container are available in our samples. Specifically, take a look at this section: https://github.com/dotnet/dotnet-docker/tree/main/samples/aspnetapp#run-the-sample-image. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I published my project using the
dotnet publish
command, it generated a Docker image that worked, but I encountered "access denied" errors when creating folder.And I was trying to do
chmod 777 ./MyFolder
To resolve this, I created a Dockerfile and build it in visual studio.
However after it, the container exits with code 0 and does not provide any logs or error messages. This issue occurs whether I use Docker Compose or docker run.
And I was thinking that my docker run was not right but how to make it better i used this.
And docker info
Using Windows and net8.0
docker run -p 8080:8080 -p 8081:8081 webapplication22:dev
webapplication22:dev is empty razor pages application
Beta Was this translation helpful? Give feedback.
All reactions