From df15420be01c3fcc7a9bea0242d117c1be2b9f63 Mon Sep 17 00:00:00 2001 From: Valentino Lauciani Date: Mon, 16 Sep 2019 14:58:38 +0200 Subject: [PATCH] Install PHPREDIS into Laravel-Horizon docker image --- laravel-horizon/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/laravel-horizon/Dockerfile b/laravel-horizon/Dockerfile index ee5b9ffd..60079bdb 100644 --- a/laravel-horizon/Dockerfile +++ b/laravel-horizon/Dockerfile @@ -50,6 +50,15 @@ ARG INSTALL_CASSANDRA=false RUN if [ ${INSTALL_CASSANDRA} = true ]; then \ apk --update add cassandra-cpp-driver \ ;fi + +# Install PhpRedis +ARG INSTALL_PHPREDIS=false +RUN if [ ${INSTALL_PHPREDIS} = true ]; then \ + # Install Php Redis Extension + printf "\n" | pecl install -o -f redis \ + && rm -rf /tmp/pear \ + && docker-php-ext-enable redis \ +;fi WORKDIR /usr/src RUN if [ ${INSTALL_CASSANDRA} = true ]; then \