S
S
sashokby2016-12-26 17:46:14
Docker
sashokby, 2016-12-26 17:46:14

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

if you can just do:
apt-get install php5-gd
While the original images weigh more:
official php 5.6.29-fpm - 154 MB
image based on debian:jessie - 74 MB
What is the advantage of docker-php-ext-install?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Moseychuk, 2016-12-26
@fshp

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 question

Ask a Question

731 491 924 answers to any question