-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved multiple `RUN` instructions into one. This will reduce the number of layers. Also, I added `rm -rf /var/lib/apt/lists/*` to remove unnecessary data.
- Loading branch information
1 parent
ad5a8e4
commit b5fb3ab
Showing
1 changed file
with
22 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,34 +18,28 @@ MAINTAINER Mahmoud Zalt <[email protected]> | |
|
||
# Install "curl", "libmemcached-dev", "libpq-dev", "libjpeg-dev", | ||
# "libpng12-dev", "libfreetype6-dev", "libssl-dev", "libmcrypt-dev", | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
curl \ | ||
libmemcached-dev \ | ||
libz-dev \ | ||
libpq-dev \ | ||
libjpeg-dev \ | ||
libpng12-dev \ | ||
libfreetype6-dev \ | ||
libssl-dev \ | ||
libmcrypt-dev | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
curl \ | ||
libmemcached-dev \ | ||
libz-dev \ | ||
libpq-dev \ | ||
libjpeg-dev \ | ||
libpng12-dev \ | ||
libfreetype6-dev \ | ||
libssl-dev \ | ||
libmcrypt-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install the PHP mcrypt extention | ||
RUN docker-php-ext-install mcrypt | ||
|
||
# Install the PHP pdo_mysql extention | ||
RUN docker-php-ext-install pdo_mysql | ||
|
||
# Install the PHP pdo_pgsql extention | ||
RUN docker-php-ext-install pdo_pgsql | ||
|
||
##################################### | ||
# gd: | ||
##################################### | ||
|
||
# Install the PHP gd library | ||
RUN docker-php-ext-configure gd \ | ||
--enable-gd-native-ttf \ | ||
--with-jpeg-dir=/usr/lib \ | ||
--with-freetype-dir=/usr/include/freetype2 && \ | ||
RUN docker-php-ext-install mcrypt \ | ||
# Install the PHP pdo_mysql extention | ||
&& docker-php-ext-install pdo_mysql \ | ||
# Install the PHP pdo_pgsql extention | ||
&& docker-php-ext-install pdo_pgsql \ | ||
# Install the PHP gd library | ||
&& docker-php-ext-configure gd \ | ||
--enable-gd-native-ttf \ | ||
--with-jpeg-dir=/usr/lib \ | ||
--with-freetype-dir=/usr/include/freetype2 && \ | ||
docker-php-ext-install gd |