title: Flask app not exposed properly on localhost
body: <p>I have a flask app, that i want to dockerize, so i have used the following Dockerfile</p>
  <pre><code>FROM python:3.8.0-alpine
  WORKDIR /project
  ADD . /project
  RUN pip install -r requirements.txt
  EXPOSE 5000
  CMD [&quot;python&quot;,&quot;application.py&quot;]
  </code></pre>
  <p>I built the container with a tag:
  <code>docker build -t flask-sms-service:latest .</code>
  and run it with the following command:
  <code>docker run -d -p 5000:5000 flask-sms-service</code></p>
  <p>I made sure to expose port 5000, for the server to be accessible. But when i access it on <code>127.0.0.1:5000</code> i can't access the container.</p>
  <p>What did i do wrong?</p>