Port exposed from Docker image not mapped to Elastic Beanstalk host

I had the same problem in a rails container (port 3000 using puma) by default rails server only binds localhost to the listening interface, I had to use -b option to bind 0.0.0.0 and that solved the problem.

In react I have no the same problem cause npm serve package binds all interfaces by default