docker-library / php

Docker Official Image packaging for PHP
https://php.net
MIT License
3.79k stars 2k forks source link

Optimize Debian fpm size #1400

Closed Anastasios89 closed 1 year ago

Anastasios89 commented 1 year ago

Debian fpm docker size is huge compare to alpine, This request removes PHPIZE_DEPS from docker. Docker size reduces to almost on half.

tianon commented 1 year ago

Duplicate of #438

see discussion there for why this won't be accepted, especially https://github.com/docker-library/php/pull/438#issuecomment-353695749

Anastasios89 commented 1 year ago

If users want to install $PHPIZE_DEPS, they can do it manually before configure and install and they can delete whatever package afterwards. Keeping a "dirty" layer with dev tools on a production docker image is not handy and quite silly.

We use docker for production, not for fun. Upload/download/store multiple instances of a dirty docker images is costly.

After all if some users cannot handle apt-get correctly, it's not a bug.

Thanks for your time