Redis no es una extensión incluida en “php-src”, por lo tanto, no puede usar docker-php-ext-install
. Usar PECL:
RUN pecl install -o -f redis \
&& rm -rf /tmp/pear \
&& docker-php-ext-enable redis
En alpine php 7.3.5 podemos usar:
RUN apk add --no-cache pcre-dev $PHPIZE_DEPS \
&& pecl install redis \
&& docker-php-ext-enable redis.so