Closed KEINOS closed 3 years ago
As of build_20200907
, we reduced almost 10 MB of its size by re-archiving it with 7zip !
Now it's 30.64 MB which is only +2.32 MB from the official 8.0.0 beta3 alpine AMD64 image of 28.32 MB.
IT IS IMPORTANT to keep the PHP source archive which was used to compile the PHP in the image. But once the container is up, it is not as important as the image build stage.
So, why don't we push the PHP source archive to the GitHub's packages so that we can create a script that downloads the archive when it's needed?
GitHub Packages works only for packages such as docker image, npm, etc. It is not intended to provide archives. So our option would be:
I think now it's small enough for this issue. Closing.
21.32 MB
, keinos/php8-jit:build_20201022, AMD6427.96 MB
, php:8.0.0RC3-alpine, AMD64
As of build_20200825, the size of our image for AMD64 is 40.66 MB, and the official image for AMD64 is 28.13 MB.
This 12.53 MB of difference might be causing the archive inside the image.
Both images include the PHP source archive under
/usr/src/
but the archive size differs around 10 MB.So, we might lighten the size if we switch the archive from ZIP to tar.xz.