From 05c5fcf2162c099879dcbf29b2999abf411b3f13 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Thu, 16 Jun 2016 14:57:27 +0800 Subject: [PATCH] Support gd extension. Signed-off-by: Bo-Yi Wu --- php-fpm/Dockerfile-55 | 10 +++++++++- php-fpm/Dockerfile-56 | 10 +++++++++- php-fpm/Dockerfile-70 | 10 +++++++++- workspace/Dockerfile | 1 + 4 files changed, 28 insertions(+), 3 deletions(-) diff --git a/php-fpm/Dockerfile-55 b/php-fpm/Dockerfile-55 index ec970ef..ae4dbdb 100644 --- a/php-fpm/Dockerfile-55 +++ b/php-fpm/Dockerfile-55 @@ -9,13 +9,21 @@ RUN apt-get update && apt-get install -y \ libpq-dev \ libmemcached-dev \ curl \ + libpng12-dev \ + libfreetype6-dev \ --no-install-recommends \ && rm -r /var/lib/apt/lists/* +# configure gd library +RUN docker-php-ext-configure gd \ + --enable-gd-native-ttf \ + --with-freetype-dir=/usr/include/freetype2 + # Install extensions using the helper script provided by the base image RUN docker-php-ext-install \ pdo_mysql \ - pdo_pgsql + pdo_pgsql \ + gd # Install memcached RUN pecl install memcached \ diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index e86564d..f14a16f 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -9,13 +9,21 @@ RUN apt-get update && apt-get install -y \ libpq-dev \ libmemcached-dev \ curl \ + libpng12-dev \ + libfreetype6-dev \ --no-install-recommends \ && rm -r /var/lib/apt/lists/* +# configure gd library +RUN docker-php-ext-configure gd \ + --enable-gd-native-ttf \ + --with-freetype-dir=/usr/include/freetype2 + # Install extensions using the helper script provided by the base image RUN docker-php-ext-install \ pdo_mysql \ - pdo_pgsql + pdo_pgsql \ + gd # Install memcached RUN pecl install memcached \ diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index d617947..d046d27 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -9,13 +9,21 @@ RUN apt-get update && apt-get install -y \ libpq-dev \ libmemcached-dev \ curl \ + libpng12-dev \ + libfreetype6-dev \ --no-install-recommends \ && rm -r /var/lib/apt/lists/* +# configure gd library +RUN docker-php-ext-configure gd \ + --enable-gd-native-ttf \ + --with-freetype-dir=/usr/include/freetype2 + # Install extensions using the helper script provided by the base image RUN docker-php-ext-install \ pdo_mysql \ - pdo_pgsql + pdo_pgsql \ + gd # Install Memcached for php 7 RUN curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/php7.tar.gz" \ diff --git a/workspace/Dockerfile b/workspace/Dockerfile index be17d96..5f38cd0 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -34,6 +34,7 @@ RUN apt-get update && apt-get install -y --force-yes \ php7.0-sqlite3 \ php7.0-zip \ php7.0-memcached \ + php7.0-gd \ php-dev \ libcurl4-openssl-dev \ libedit-dev \