Relative Content

Tag Archive for asp.netdockeraws-codebuild

AWS CodeBuild – Testing Docker Container, No Ports Mapped

I’m building and testing a docker container in CodeBuild running a .NET 8 asp web app with kestrel configured to listen on any IP on port 5000. When I build and test locally (using the same set of steps as in CodeBuild), everything is great. When I run it in the CodeBuild environment, the container builds and runs, but the port is missing. When I run a netstat -tulnp inside the container, there are no listening ports listed. Curling http://localhost:5000/ fails.