Browse Source

Cleanup docker images

* PHP 5.4 container size: -70 MB
* PHP 5.5 container size: -20 MB
* PHP 5.6 container size: -85 MB

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
tags/php5.4-5
Morris Jobke 2 years ago
parent
commit
27db489aa9
No account linked to committer's email address
3 changed files with 15 additions and 9 deletions
  1. 3
    1
      php5.4/Dockerfile
  2. 9
    7
      php5.5/Dockerfile
  3. 3
    1
      php5.6/Dockerfile

+ 3
- 1
php5.4/Dockerfile View File

@@ -1,7 +1,9 @@
FROM debian:oldstable
RUN apt-get update && apt-get install -y php5-intl php5-gd git curl \
php5-cli php5-curl php5-imagick php5-mcrypt php5-ldap php5-sqlite \
make libmagickcore5-extra
make libmagickcore5-extra && \
apt-get autoremove -y && apt-get autoclean && apt-get clean && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
RUN php5enmod zip intl gd
RUN curl -O -L https://phar.phpunit.de/phpunit-4.8.24.phar \
&& chmod +x phpunit-4.8.24.phar \

+ 9
- 7
php5.5/Dockerfile View File

@@ -1,12 +1,14 @@
FROM debian:oldstable
RUN apt-get update && apt-get install -y wget
RUN wget http://www.dotdeb.org/dotdeb.gpg && \
apt-key add dotdeb.gpg
RUN echo "deb http://packages.dotdeb.org wheezy-php55 all" >> /etc/apt/sources.list
RUN echo "deb-src http://packages.dotdeb.org wheezy-php55 all" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y php5-intl php5-gd git curl \
RUN apt-get update && apt-get install -y wget && \
wget http://www.dotdeb.org/dotdeb.gpg && \
apt-key add dotdeb.gpg && \
echo "deb http://packages.dotdeb.org wheezy-php55 all" >> /etc/apt/sources.list && \
echo "deb-src http://packages.dotdeb.org wheezy-php55 all" >> /etc/apt/sources.list && \
apt-get update && apt-get install -y php5-intl php5-gd git curl \
php5-cli php5-curl php5-imagick php5-mcrypt php5-ldap \
php5-apcu php5-redis php5-sqlite make libmagickcore5-extra
php5-apcu php5-redis php5-sqlite make libmagickcore5-extra && \
apt-get autoremove -y && apt-get autoclean && apt-get clean && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
RUN php5enmod zip intl gd
RUN curl -O -L https://phar.phpunit.de/phpunit-4.8.24.phar \
&& chmod +x phpunit-4.8.24.phar \

+ 3
- 1
php5.6/Dockerfile View File

@@ -1,7 +1,9 @@
FROM debian
RUN apt-get update && apt-get install -y php5-intl php5-gd git curl \
php5-cli php5-curl php5-imagick php5-pgsql php5-mcrypt php5-ldap \
php5-apcu php5-redis php5-sqlite php5-mysql wget make libmagickcore-6.q16-2-extra
php5-apcu php5-redis php5-sqlite php5-mysql wget make libmagickcore-6.q16-2-extra \
&& apt-get autoremove -y && apt-get autoclean && apt-get clean && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
RUN php5enmod zip intl gd
RUN curl -O -L https://phar.phpunit.de/phpunit-5.5.4.phar \
&& chmod +x phpunit-5.5.4.phar \

Loading…
Cancel
Save