4 ms·
Python is still more wildly used / popular language, but I never seen a Python container for a real project which was less than 1GB.
by kissgyorgy 6y ago
Python is still more wildly used / popular language, but I never seen a Python container for a real project which was less than 1GB.
- rataata_jr 6y agoI've seen ones in MBs with alpine
- simtel20 6y agoHave you tried basing one on distroless? That has turned out pretty small python containers for me.
- dbt00 6y agoI'm guessing you're doing ML here? Because the core python runtime is far smaller than that.
- kornholi 6y agoYeah, ML libraries are a huge offender. The Torch 1.8.1 manylinux wheel is 1.6G unpacked, with 1.1G going to CUDA support.
- masklinn 6y agoAlpine containers for P3 go down to about 60MB for the baseline. Everything else is what you added in. CPython doesn't generate anything, and the binary installers (including docs and all) are about 30MB. Hell, the 64b embeddable package for windows (https://docs.python.org/3/using/windows.html#the-embeddable-package https://docs.python.org/3/using/windows.html#the-embeddable-...) is 16MB uncompressed.