diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index 017b516..b389fb7 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -47,22 +47,25 @@ RUN install-php-extensions bcmath \ #RUN apk add --no-cache ssmbclient -RUN echo -e "\n opcache.enable=1 \n opcache.enable_cli=1 \n opcache.memory_consumption=2048 \n opcache.interned_strings_buffer=1024 \n opcache.max_accelerated_files=8000 \n opcache.revalidate_freq=60 \n opcache.fast_shutdown=1" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini \ +RUN echo -e "\n opcache.enable=1 \n opcache.enable_cli=1 \n opcache.memory_consumption=2048 \n opcache.interned_strings_buffer=1024 \n opcache.max_accelerated_files=8000 \n opcache.revalidate_freq=60 \n opcache.fast_shutdown=1" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini \ && echo -e "\n xdebug.remote_enable=1 \n xdebug.remote_host=localhost \n xdebug.remote_port=9000" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \ && echo -e "\n xhprof.output_dir='/var/tmp/xhprof'" >> /usr/local/etc/php/conf.d/docker-php-ext-xhprof.ini \ - && cd ~ \ + && cd ~ + # Install composer - && php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ +RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ && php -r "copy('https://composer.github.io/installer.sig', 'signature');" \ && php -r "if (hash_file('SHA384', 'composer-setup.php') === trim(file_get_contents('signature'))) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \ && php composer-setup.php --install-dir=/usr/local/bin --filename=composer \ - && php -r "unlink('composer-setup.php');" \ + && php -r "unlink('composer-setup.php');" + # Install WP-CLI - && curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \ +RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \ && chmod +x wp-cli.phar \ - && mv wp-cli.phar /usr/local/bin/wp \ + && mv wp-cli.phar /usr/local/bin/wp + # Install msmtp - To Send Mails on Production & Development - && apk add msmtp +RUN apk add msmtp RUN apk add --no-cache gnupg