From ed452847d9d2145f6e4ed2c57428c380938afd50 Mon Sep 17 00:00:00 2001 From: Ryan Trauntvein Date: Fri, 13 Apr 2018 22:54:30 -0700 Subject: [PATCH] Use wget instead of php to download --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b84e3fb5..afc7829f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,8 +65,8 @@ RUN mkdir -p /var/www/html && \ chown -R www-data:root /var/www /usr/share/nginx/cache /var/cache/nginx /var/lib/nginx/ # Install composer -RUN php -r "copy('https://getcomposer.org/installer', '/tmp/composer-setup.php');" && \ - php -r "copy('https://composer.github.io/installer.sig', '/tmp/composer-setup.sig');" && \ +RUN wget https://getcomposer.org/installer -O /tmp/composer-setup.php && \ + wget https://composer.github.io/installer.sig -O /tmp/composer-setup.sig && \ php -r "if (hash('SHA384', file_get_contents('/tmp/composer-setup.php')) !== trim(file_get_contents('/tmp/composer-setup.sig'))) { unlink('/tmp/composer-setup.php'); echo 'Invalid installer' . PHP_EOL; exit(1); }" && \ php /tmp/composer-setup.php --version=$COMPOSER_VERSION --install-dir=bin && \ php -r "unlink('/tmp/composer-setup.php');" @@ -80,7 +80,7 @@ RUN wget https://github.com/cachethq/Cachet/archive/${cachet_ver}.tar.gz && \ rm -r ${cachet_ver}.tar.gz && \ php /bin/composer.phar global require "hirak/prestissimo:^0.3" && \ php /bin/composer.phar install --no-dev -o && \ - rm -rf bootstrap/cache/* + rm -rf bootstrap/cache/* COPY conf/php-fpm-pool.conf /etc/php7/php-fpm.d/www.conf COPY conf/supervisord.conf /etc/supervisor/supervisord.conf