Update Dockerfile-70

install libJPEG and enabled in GD
This commit is contained in:
Yew JS 2016-07-13 14:12:32 +08:00 committed by GitHub
parent 1b9630e8a1
commit 48a53f1d24
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y \
libpq-dev \ libpq-dev \
libmemcached-dev \ libmemcached-dev \
curl \ curl \
libjpeg-dev \
libpng12-dev \ libpng12-dev \
libfreetype6-dev \ libfreetype6-dev \
libssl-dev \ libssl-dev \
@ -25,6 +26,7 @@ RUN pecl install mongodb
# configure gd library # configure gd library
RUN docker-php-ext-configure gd \ RUN docker-php-ext-configure gd \
--enable-gd-native-ttf \ --enable-gd-native-ttf \
--with-jpeg-dir=/usr/lib \
--with-freetype-dir=/usr/include/freetype2 --with-freetype-dir=/usr/include/freetype2
# Install extensions using the helper script provided by the base image # Install extensions using the helper script provided by the base image