"EXPOSE" instruction does not actually publish the port.(it's just a way of telling the person who runs the container about which ports are intended to be published)
To actually publish the port you need to run the container & use the -p flag with it
Even though i have mentioned 5000 in my Dockerfile, i can run my container on 5500 if i do docker run -dp 5500:5000 hello-python
Because i wanted to check if my container is running fine i used the docker run command
I hope it makes sense :)