docker

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

commit baa6a5f851b32d00d2c46ad2a8ca4a0645ebcef5
parent a9f1e4449bde11143533e8d6fd2fb846e70e43fa
Author: Xiaodong Xu <xuxd@inedcn.com>
Date:   Mon May 28 14:51:24 +0800

Update PHP Dockerfile

Diffstat:
lemp/php/Dockerfile | 39+++++++++++++++++++++++++++++++++++----
1 file changed, 35 insertions(+), 4 deletions(-)
diff --git a/lemp/php/Dockerfile b/lemp/php/Dockerfile @@ -1,12 +1,43 @@ FROM php:7.1-fpm # Install extensions via docker -#RUN apt-get update \ -# && docker-php-ext-install -j$(nproc) iconv +RUN apt-get update \ + && apt-get install -y \ + libbz2-dev \ + libfreetype6-dev \ + libjpeg62-turbo-dev \ + libmcrypt-dev \ + libpng-dev \ + libgmp-dev \ + libxml2-dev \ + libxslt1-dev \ + && docker-php-ext-install -j$(nproc) \ + bcmath \ + bz2 \ + calendar \ + dba \ + exif \ + gd \ + gettext \ + gmp \ + mcrypt \ + mysqli \ + pcntl \ + pdo_mysql \ + shmop \ + soap \ + sockets \ + sysvmsg \ + sysvsem \ + sysvshm \ + wddx \ + xmlrpc \ + xsl \ + zip # Install extensions via pecl -#RUN pecl install redis-4.0.1 \ -# && docker-php-ext-enable redis +RUN pecl install redis \ + && docker-php-ext-enable redis # Install Composer RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \