The script docker-php-ext-enable calls nm utility to check if the extension is normal one or a zend extension.
https://github.com/docker-library/php/blob/master/7.1/alpine/docker-php-ext-enable#L61
How to reproduce:
$ docker run --rm -ti php:7-alpine /bin/sh
/ # docker-php-ext-enable opcache
/usr/local/bin/docker-php-ext-enable: line 83: nm: not found
/ # php -v
PHP Warning: PHP Startup: Invalid library (appears to be a Zend Extension, try loading using zend_extension=opcache.so from php.ini) in Unknown on line 0
Apline does not contain nm by default, it should be installed with a
/ # apk --update add binutils
The script docker-php-ext-enable calls
nmutility to check if the extension is normal one or a zend extension.https://github.com/docker-library/php/blob/master/7.1/alpine/docker-php-ext-enable#L61
How to reproduce:
Apline does not contain nm by default, it should be installed with a