Skip to content

Commit 05c5fcf

Browse files
committed
Support gd extension.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent fccee52 commit 05c5fcf

4 files changed

Lines changed: 28 additions & 3 deletions

File tree

php-fpm/Dockerfile-55

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,21 @@ RUN apt-get update && apt-get install -y \
99
libpq-dev \
1010
libmemcached-dev \
1111
curl \
12+
libpng12-dev \
13+
libfreetype6-dev \
1214
--no-install-recommends \
1315
&& rm -r /var/lib/apt/lists/*
1416

17+
# configure gd library
18+
RUN docker-php-ext-configure gd \
19+
--enable-gd-native-ttf \
20+
--with-freetype-dir=/usr/include/freetype2
21+
1522
# Install extensions using the helper script provided by the base image
1623
RUN docker-php-ext-install \
1724
pdo_mysql \
18-
pdo_pgsql
25+
pdo_pgsql \
26+
gd
1927

2028
# Install memcached
2129
RUN pecl install memcached \

php-fpm/Dockerfile-56

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,21 @@ RUN apt-get update && apt-get install -y \
99
libpq-dev \
1010
libmemcached-dev \
1111
curl \
12+
libpng12-dev \
13+
libfreetype6-dev \
1214
--no-install-recommends \
1315
&& rm -r /var/lib/apt/lists/*
1416

17+
# configure gd library
18+
RUN docker-php-ext-configure gd \
19+
--enable-gd-native-ttf \
20+
--with-freetype-dir=/usr/include/freetype2
21+
1522
# Install extensions using the helper script provided by the base image
1623
RUN docker-php-ext-install \
1724
pdo_mysql \
18-
pdo_pgsql
25+
pdo_pgsql \
26+
gd
1927

2028
# Install memcached
2129
RUN pecl install memcached \

php-fpm/Dockerfile-70

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,21 @@ RUN apt-get update && apt-get install -y \
99
libpq-dev \
1010
libmemcached-dev \
1111
curl \
12+
libpng12-dev \
13+
libfreetype6-dev \
1214
--no-install-recommends \
1315
&& rm -r /var/lib/apt/lists/*
1416

17+
# configure gd library
18+
RUN docker-php-ext-configure gd \
19+
--enable-gd-native-ttf \
20+
--with-freetype-dir=/usr/include/freetype2
21+
1522
# Install extensions using the helper script provided by the base image
1623
RUN docker-php-ext-install \
1724
pdo_mysql \
18-
pdo_pgsql
25+
pdo_pgsql \
26+
gd
1927

2028
# Install Memcached for php 7
2129
RUN curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-memcached/archive/php7.tar.gz" \

workspace/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ RUN apt-get update && apt-get install -y --force-yes \
3434
php7.0-sqlite3 \
3535
php7.0-zip \
3636
php7.0-memcached \
37+
php7.0-gd \
3738
php-dev \
3839
libcurl4-openssl-dev \
3940
libedit-dev \

0 commit comments

Comments
 (0)