Reformat PHP's "more extensions" example to match our standard Dockerfile formatting
This commit is contained in:
parent
49446b9f69
commit
f4bbd50253
|
|
@ -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
|
FROM php:5.6-fpm
|
||||||
# Install modules
|
# Install modules
|
||||||
RUN apt-get update && apt-get install -y \
|
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-install iconv mcrypt \
|
||||||
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
|
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
|
||||||
&& docker-php-ext-install gd
|
&& docker-php-ext-install gd
|
||||||
|
|
|
||||||
|
|
@ -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
|
FROM php:5.6-fpm
|
||||||
# Install modules
|
# Install modules
|
||||||
RUN apt-get update && apt-get install -y \
|
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-install iconv mcrypt \
|
||||||
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
|
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
|
||||||
&& docker-php-ext-install gd
|
&& docker-php-ext-install gd
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue