Support gd extension.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-06-16 14:57:27 +08:00
parent fccee522c6
commit 05c5fcf216
4 changed files with 28 additions and 3 deletions

View File

@ -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 \

View File

@ -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 \

View File

@ -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" \

View File

@ -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 \