diff --git a/scripts/docker_install.sh b/scripts/docker_install.sh
index 95db2b4d60a81bcf3043484085f73d4e421fdaaa..9afa9f7fc39e0d9cad7ea916ba2745fd671fb21e 100644
--- a/scripts/docker_install.sh
+++ b/scripts/docker_install.sh
@@ -11,14 +11,12 @@ chmod +x /usr/local/bin/phpunit
 
 # required dependencies
 apt-get update -yqq
-apt-get install libmcrypt-dev mysql-client git -yqq
+apt-get install libfreetype6-dev libjpeg62-turbo-dev libpng12-dev libmcrypt-dev mysql-client git -yqq
 
 # required php extensions not included in base php image
-docker-php-ext-install mysqli
-docker-php-ext-install mcrypt
-#docker-php-ext-install libxml
-#docker-php-ext-install dom
-docker-php-ext-install gettext
+docker-php-ext-install mysqli mcrypt gettext
+docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
+docker-php-ext-install gd
 
 # data preparation
 curl --location --output default-ci-dump.sql.gz http://sandbox.afi-sa.net/databases/default-ci-dump.sql.gz