Answer the question
In order to leave comments, you need to log in
What are the benefits of using docker-php-ext-install?
Why use docker-php-ext-install in which you need to specify the required libraries:
FROM php:7.0-fpm
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng12-dev \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd
apt-get install php5-gd
Answer the question
In order to leave comments, you need to log in
I would venture to guess that more packages and more recent versions are available in docker-php-ext-install than in the distribution's repository.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question