Php: Benefits of using docker-php-ext-install over apt-get install?

Created on 6 Feb 2019  路  2Comments  路  Source: docker-library/php

Are there any added benefits of using docker-php-ext-install over apt-get install? Other than the portability of the Docker image to non-Debian based images.

If there is a better forum for this question, please point me in that direction.

Most helpful comment

This image provides a typically newer version of PHP them Debian, straight from PHP (built from source). If you need extra core extensions in this image that aren't included by default, they have to be built from source also, which is what that script does. It really isn't an either or at this level, but rather if you choose to use this image and need that, you must.

The alternative is to simply use Debian's PHP packages, which is also totally fine (they're definitely good stuff, but I'm biased 馃槄), but does mean you're not using this image, which is also fine.

All 2 comments

This image provides a typically newer version of PHP them Debian, straight from PHP (built from source). If you need extra core extensions in this image that aren't included by default, they have to be built from source also, which is what that script does. It really isn't an either or at this level, but rather if you choose to use this image and need that, you must.

The alternative is to simply use Debian's PHP packages, which is also totally fine (they're definitely good stuff, but I'm biased 馃槄), but does mean you're not using this image, which is also fine.

If there is a better forum for this question, please point me in that direction.

In the future, these sorts of questions/requests would be more appropriately posted to the Docker Community Forums, the Docker Community Slack, or Stack Overflow.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

igodorogea picture igodorogea  路  3Comments

mikk150 picture mikk150  路  3Comments

pukkancs picture pukkancs  路  3Comments

cordoval picture cordoval  路  3Comments

cmath10 picture cmath10  路  3Comments