title: How do I reduce a python (docker) image size using a multi-stage build?
body: <p>I am looking for a way to create multistage builds with python and Dockerfile:</p>
  <p>For example, using the following images:</p>
  <p><strong>1st image</strong>: install all compile-time requirements, and install all needed python modules</p>
  <p><strong>2nd image</strong>: copy all compiled/built packages from the first image to the second, without the compilers themselves (gcc, postgers-dev, python-dev, etc..)</p>
  <p>The final objective is to have a smaller image, running python and the python packages that I need.</p>
  <p>In short: <strong>how can I 'wrap' all the compiled modules</strong> (site-packages / external libs) that were created in the first image, and <strong>copy them in a 'clean' manner</strong>, to the 2nd image.</p>