title: How can I run a Docker container with Python3.7 and Pipenv for a Flask app?
body: <p>My <code>Dockerfile</code> is:</p>
  <pre><code>
  FROM ubuntu:18.04
  RUN apt-get -y update
  RUN apt-get install -y software-properties-common
  RUN add-apt-repository ppa:deadsnakes/ppa
  RUN apt-get update -y
  RUN apt-get install -y python3.7 build-essential python3-pip
  ENV LC_ALL C.UTF-8
  ENV LANG C.UTF-8
  RUN pip3 install pipenv
  COPY . /app
  WORKDIR /app
  RUN pipenv install
  EXPOSE 5000
  CMD [&quot;pipenv&quot;, &quot;run&quot;, &quot;python3&quot;, &quot;application.py&quot;]
  </code></pre>
  <p>When I do <code>docker build -t flask-sample:latest .</code>, it builds fine (I think).</p>
  <p>I run it with <code>docker run -d -p  5000:5000 flask-sample</code> and it looks okay</p>
  <p>But when I go to <code>http://localhost:5000</code>, nothing loads. What am I doing wrong?</p>