diff --git a/scripts/docker_install.sh b/scripts/docker_install.sh
index 6f1283256eb1aa7628c743903a3a853f3261c761..5a398bc222a44798f394441e8554859ba5069e80 100644
--- a/scripts/docker_install.sh
+++ b/scripts/docker_install.sh
@@ -22,13 +22,6 @@ apt-get install libfreetype6-dev \
         mysql-client \
         git -yqq
 
-# required php extensions not included in base php image
-pecl install imagick-3.4.3RC1 \
-    && docker-php-ext-enable imagick \
-    && docker-php-ext-install mysqli mcrypt gettext calendar zip soap \
-    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
-    && docker-php-ext-install gd
-
 mkdir /tmp/phantomjs \
     && curl -L https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 \
         | tar -xj --strip-components=1 -C /tmp/phantomjs \
@@ -36,6 +29,15 @@ mkdir /tmp/phantomjs \
     && chmod +x /usr/local/bin/phantomjs \
     && rm -rf /tmp/phantomjs
 
+locale-gen fr_FR.UTF-8
+
+# required php extensions not included in base php image
+pecl install imagick-3.4.3RC1 \
+    && docker-php-ext-enable imagick \
+    && docker-php-ext-install mysqli mcrypt gettext calendar zip soap \
+    && 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
 mysql -h mysql -uroot -proot -e "drop schema if exists $1; create schema $1"