Patricius
Explore posts from serversDockerized .NET8 API not accessible.
Hey, thank you for answering, I was in a meeting.
- Why is entrypoint dotnet watch run? This is supposed to be a development environment Dockerfile, dotnet watch is just setting up hot reload. I have another Dockerfile for prod but that one is facing the same issues.
- Why Dockerfile for dev env? Because I have other pieces of Software and with Docker launching the project takes 1 command.
- This is also why I dont do publish and dont use server.dll. I can assure you that outside of Docker these commands and how I run it work fine. Even inside of Docker when I run curl commands everything is fine.
- What do logs say? The logs just show the typical dotnet startup screen:
- Check if something is using the port? I have tried using 5282, 3000 (which I use for other apps I develop) and 8080. I know for sure that nothing else is using 3000.
28 replies