title: getting a socket hang up error when trying to access my flask app in a docker container
body: <p>Dockerfile</p>
  <pre><code>from ubuntu:latest
  
  RUN apt-get update -y &amp;&amp; apt-get install -y python3-pip
  
  COPY . /app
  
  RUN pip3 install -r /app/requirements.txt
  
  ENTRYPOINT [&quot;python3&quot;]
  CMD [&quot;app/app.py&quot;]
  </code></pre>
  <p>run commands</p>
  <pre><code>docker build -t flaskapp .
  docker run -it -d p 5000:5000 flaskapp
  </code></pre>
  <p>if i sent a request to <code>localhost:5000</code> via Postman, i would get a <code>Error: Socket hang up</code> error</p>
  <p>Anyone know why this is an issue?</p>