Explorar o código

workspace redis extension use apt install. (#1990)

Shao Yu-Lung (Allen) %!s(int64=6) %!d(string=hai) anos
pai
achega
931f99ed0f
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      workspace/Dockerfile

+ 1 - 4
workspace/Dockerfile

@@ -374,10 +374,7 @@ RUN if [ ${INSTALL_AMQP} = true ]; then \
 ARG INSTALL_PHPREDIS=false
 
 RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
-    # Install Php Redis extension
-    printf "\n" | pecl -q install -o -f redis && \
-    echo "extension=redis.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/redis.ini && \
-    phpenmod redis \
+    apt-get install -yqq php-redis \
 ;fi
 
 ###########################################################################