]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Add PHP 'gd' extension to docker 2319/head
authorPascal MARTIN <pmartin@tea-ebook.com>
Fri, 30 Sep 2016 10:29:37 +0000 (12:29 +0200)
committerPascal MARTIN <pmartin@tea-ebook.com>
Fri, 30 Sep 2016 10:29:37 +0000 (12:29 +0200)
The gd extension is required to export entries as EPUB.

docker/php/Dockerfile

index 29d27c3a80ce1a3fa933f824492d0e0f02c1e9d5..1fb1f29826e7c402cecb9274006767dea4dd4558 100644 (file)
@@ -4,9 +4,10 @@ FROM php:fpm
 ARG timezone='Europe/Paris'
 
 RUN apt-get update && apt-get install -y \
-        libmcrypt-dev libicu-dev libpq-dev libxml2-dev \
+        libmcrypt-dev libicu-dev libpq-dev libxml2-dev libpng12-dev libjpeg-dev \
+    && /usr/local/bin/docker-php-ext-configure gd --with-jpeg-dir=/usr/include \
     && docker-php-ext-install \
-        iconv mcrypt mbstring intl pdo pdo_mysql pdo_pgsql
+        iconv mcrypt mbstring intl pdo pdo_mysql pdo_pgsql gd
 
 RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini