Last week I showed you how to build a production-ready REST API using Python, FastAPI and Docker.
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?
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
Very interesting , thank you
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?
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
Very interesting , thank you