Browse Source

Mettre à jour 'bin/webserver/Dockerfile'

pascal.pp 3 years ago
parent
commit
a358a4cb2d
1 changed files with 17 additions and 6 deletions
  1. 17
    6
      bin/webserver/Dockerfile

+ 17
- 6
bin/webserver/Dockerfile View File

@@ -45,12 +45,23 @@ RUN docker-php-ext-install gettext
45 45
 
46 46
 RUN docker-php-ext-install bcmath
47 47
 
48
-RUN apt-get install -y libwebp-dev libjpeg62-turbo-dev libpng-dev libxpm-dev libfreetype6-dev
49
-RUN docker-php-ext-configure gd --with-gd --with-webp-dir --with-jpeg-dir \
50
-    --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir \
51
-    --enable-gd-native-ttf
52
-RUN docker-php-ext-install gd
53
-#RUN docker-php-ext-install -j$(nproc) gd
48
+RUN apt-get update; \
49
+  apt-get install -y --no-install-recommends \
50
+  libfreetype6-dev \
51
+  libjpeg62-turbo-dev \
52
+  libpng-dev \
53
+  pkg-config \
54
+  patch;
55
+
56
+ADD https://git.archlinux.org/svntogit/packages.git/plain/trunk/freetype.patch?h=packages/php /tmp/freetype.patch
57
+RUN docker-php-source extract; \
58
+  cd /usr/src/php; \
59
+  patch -p1 -i /tmp/freetype.patch; \
60
+  rm /tmp/freetype.patch
61
+
62
+RUN docker-php-ext-configure gd --with-gd --with-freetype-dir 
63
+#RUN docker-php-ext-install gd
64
+RUN docker-php-ext-install -j$(nproc) gd
54 65
 
55 66
 # Enable apache modules
56 67
 RUN a2enmod rewrite headers

Loading…
Cancel
Save