Reformat PHP's "more extensions" example to match our standard Dockerfile formatting

This commit is contained in:
Tianon Gravi 2015-02-20 11:49:26 -07:00
parent 49446b9f69
commit f4bbd50253
2 changed files with 8 additions and 2 deletions

View File

@ -75,7 +75,10 @@ For example, if you want to have a PHP-FPM image with `iconv`, `mcrypt` and `gd`
FROM php:5.6-fpm
# Install modules
RUN apt-get update && apt-get install -y \
libmcrypt-dev libpng12-dev libfreetype6-dev libjpeg62-turbo-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
&& docker-php-ext-install iconv mcrypt \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install gd

View File

@ -61,7 +61,10 @@ For example, if you want to have a PHP-FPM image with `iconv`, `mcrypt` and `gd`
FROM php:5.6-fpm
# Install modules
RUN apt-get update && apt-get install -y \
libmcrypt-dev libpng12-dev libfreetype6-dev libjpeg62-turbo-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
&& docker-php-ext-install iconv mcrypt \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install gd