Shrink LinAlg This is a sample Dockerfile on how to optimize the disk space consumption from NumPy, SciPy, Pandas, and Matplotlib. An in-depth write up is also on my blog post on Medium.