Skip to content

Commit ae412c6

Browse files
authored
Merge pull request #4 from appleboy/gd
Fixed #3 support gd extension.
2 parents 9cdb21b + 5b78e02 commit ae412c6

3 files changed

Lines changed: 27 additions & 3 deletions

File tree

php/Dockerfile-55

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,22 @@ RUN apt-get update && apt-get install -y \
1111
curl \
1212
mysql-client \
1313
postgresql-client \
14+
libpng12-dev \
15+
libfreetype6-dev \
1416
--no-install-recommends && \
1517
rm -r /var/lib/apt/lists/*
1618

19+
# configure gd library
20+
RUN docker-php-ext-configure gd \
21+
--enable-gd-native-ttf \
22+
--with-freetype-dir=/usr/include/freetype2
23+
1724
# Install extensions using the helper script provided by the base image
1825
RUN docker-php-ext-install \
1926
pdo_mysql \
2027
pdo_pgsql \
21-
mysqli
28+
mysqli \
29+
gd
2230

2331
# Install xdebug
2432
RUN pecl install xdebug && \

php/Dockerfile-56

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,22 @@ RUN apt-get update && apt-get install -y \
1111
curl \
1212
mysql-client \
1313
postgresql-client \
14+
libpng12-dev \
15+
libfreetype6-dev \
1416
--no-install-recommends && \
1517
rm -r /var/lib/apt/lists/*
1618

19+
# configure gd library
20+
RUN docker-php-ext-configure gd \
21+
--enable-gd-native-ttf \
22+
--with-freetype-dir=/usr/include/freetype2
23+
1724
# Install extensions using the helper script provided by the base image
1825
RUN docker-php-ext-install \
1926
pdo_mysql \
2027
pdo_pgsql \
21-
mysqli
28+
mysqli \
29+
gd
2230

2331
# Install xdebug
2432
RUN pecl install xdebug && \

php/Dockerfile-70

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,22 @@ RUN apt-get update && apt-get install -y \
1111
curl \
1212
mysql-client \
1313
postgresql-client \
14+
libpng12-dev \
15+
libfreetype6-dev \
1416
--no-install-recommends && \
1517
rm -r /var/lib/apt/lists/*
1618

19+
# configure gd library
20+
RUN docker-php-ext-configure gd \
21+
--enable-gd-native-ttf \
22+
--with-freetype-dir=/usr/include/freetype2
23+
1724
# Install extensions using the helper script provided by the base image
1825
RUN docker-php-ext-install \
1926
pdo_mysql \
2027
pdo_pgsql \
21-
mysqli
28+
mysqli \
29+
gd
2230

2331
# Install xdebug
2432
RUN pecl install xdebug && \

0 commit comments

Comments
 (0)