docker

Docker for services
git clone git://git.unixkoans.com/docker.git
Log | Files | Refs

commit 31a3912b91977f5777293d57a7c8b82098b434d9
parent 8b698bb4ba92d412e9612f8ad6f0c9e00a5e715b
Author: Xiaodong Xu <[email protected]>
Date:   Thu May 24 15:32:01 +0800

Update PHP Dockerfile

Diffstat:
lemp/php/Dockerfile | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/lemp/php/Dockerfile b/lemp/php/Dockerfile @@ -7,3 +7,9 @@ FROM php:7.1-fpm # Install extensions via pecl #RUN pecl install redis-4.0.1 \ # && docker-php-ext-enable redis + +# Install Composer +RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ + && php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { 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');"