The flask app is serving on localhost:5000 IN the container. this localhost is not the same as your localhost and is not served to the outside. If you want to service to be available outside of the container you must listen to correct ips.
e.g. all:
app.run(host=“0.0.0.0”)