3 Comments
User's avatar
Farooq Shaikh's avatar

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
Pau Labarta Bajo's avatar

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
oscar Houessou's avatar

Very interesting , thank you

Expand full comment