-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Hi guys,
in the same way we do for alpine packages in #206... maybe we can think about removing /usr/src/php
from the produced container image & make things easy to restore it?
Basically, I was thinking about:
- Add some
&& rm -rf /usr/src/php
here - Create a new script named for example
docker-grab-php-source.sh
that can manage the whole download/gpg check & so on - Like in install build time deps from docker-php-ext-install for alpine #206 provide a mecanism to grab php source code each time we want to install some extension.
As /usr/src/php
for php7 weights around 190M inside a running alpine image, I guess we can reduce the final image size by 10 to 20M (which is about the sizes of compressed php releases source code artifacts.).
To sum up, this can be around 25 to 50% gain for the final image size.
Also, this can be applied to non Alpine Linux images I guess, as it was tried with a non working approach in #96.
Metadata
Metadata
Assignees
Labels
No labels