How can I expose port for rasa server and action server and flask in dockerfile

I want to deploy rasa bot but struggling for port Now my bot is running on localhost 5000 with flask app + custom ui but not sure how to make a dockerfile.