title: Multistage Dockerfile Python
body: <p>so I got trouble here, I've deployed my multistage dockerfile with <code>python:3.8-slim-buster</code>, but I can't access this URL ? is there something wrong with my Dockerfile ?</p>
  <pre class="lang-sh prettyprint-override"><code># Build Image
  FROM python:3.8-slim-buster as builder
  
  RUN apt-get update --fix-missing
  RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libgl1-mesa-dev python3-pip git
  RUN mkdir /usr/src/app
  
  WORKDIR /usr/src/app
  
  COPY ./requirements.txt /usr/src/app/requirements.txt
  
  RUN pip3 install -U setuptools
  RUN pip3 install --upgrade pip
  RUN pip3 install -r ./requirements.txt
  
  COPY . /usr/src/app
  
  # Production Image
  FROM python:3.8-slim-buster as app
  
  COPY --from=builder /usr/src/app /usr/src/app
  
  WORKDIR /usr/src/app
  
  ENTRYPOINT gunicorn --bind 0.0.0.0:1500 --workers 1 --threads 8 main:app --worker-class uvicorn.workers.UvicornH11Worker --preload --timeout 60 --worker-tmp-dir /dev/shm
  </code></pre>
  <p>This is how I run my Docker:</p>
  <pre class="lang-sh prettyprint-override"><code>sudo docker build -t priceengine .
  sudo docker run -dp 1500:1500 priceengine
  sudo docker start 2d7f96017801
  </code></pre>
  <p>So, my <code># Production Image</code> was correct ?</p>