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.
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.
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.