Merge pull request #101 from appleboy/gd

Support gd extension.
This commit is contained in:
Mahmoud Zalt 2016-06-16 17:47:04 +03:00 committed by GitHub
commit 8d216f83d5
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 \