Skip to content

Commit 8bfb29f

Browse files
committed
Fix gd/freetype configuration issues
The rack drawing module was not working correctly (got PHP Fatal error: Call to undefined function imagettftext).
1 parent 913098d commit 8bfb29f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ ENV WEB_REPO /var/www/html
77

88
# Install required deb packages
99
RUN apt-get update && apt-get -y upgrade && \
10-
apt-get install -y php-pear php5-curl php5-mysql php5-json php5-gmp php5-mcrypt php5-ldap php5-gd php-net-socket libgmp-dev libmcrypt-dev libpng12-dev libldap2-dev && \
10+
apt-get install -y php-pear php5-curl php5-mysql php5-json php5-gmp php5-mcrypt php5-ldap php5-gd php-net-socket libgmp-dev libmcrypt-dev libpng12-dev libfreetype6-dev libjpeg-dev libpng-dev libldap2-dev && \
1111
rm -rf /var/lib/apt/lists/*
1212

1313
# Configure apache and required PHP modules
1414
RUN docker-php-ext-configure mysqli --with-mysqli=mysqlnd && \
1515
docker-php-ext-install mysqli && \
16+
docker-php-ext-configure gd --enable-gd-native-ttf --with-freetype-dir=/usr/include/freetype2 --with-png-dir=/usr/include --with-jpeg-dir=/usr/include && \
1617
docker-php-ext-install gd && \
1718
docker-php-ext-install sockets && \
1819
docker-php-ext-install pdo_mysql && \

0 commit comments

Comments
 (0)