3 Comments
Oct 9Liked by Pau Labarta Bajo

Thanks for this article, I tried the same approach. The python sitepackages directory itself is huge and when we copy that into the second docker image, its size is almost identical to the one built in single stage. Am I missing something?

Expand full comment
author

Git clone the latest version of the code and run $ make check-image-sizes

Here is the output I get:

Naive image size 996MB

Single-stage image size 996MB

Multi-stage image size 655MB

Expand full comment
Oct 5Liked by Pau Labarta Bajo

Very interesting , thank you

Expand full comment