Docker Image of Flask Python file not running in browser

I have put my flask app in a docker container and when I run it in the terminal, everything that I would expect to print out does, so the python app is running, but when i put the link in the browser I get:

127.0.0.1 didn’t send any data.

ERR_EMPTY_RESPONSE

Does anyone know why it is not connecting in the browser?

Edit: I've also put in app.run(host='0.0.0.0') in my flask python file, I also have port=(int)"5000" in my python file and EXPOSE 5000 in my dockerfile

submitted by /u/akas24
[link] [comments]
Source: Reddit