From 1673a80daf38cb211fdae5a0c4945da5da94fa91 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 3 Jun 2016 14:21:52 +0800 Subject: [PATCH] clean apt source file after install. Signed-off-by: Bo-Yi Wu --- php-fpm/Dockerfile-55 | 4 +++- php-fpm/Dockerfile-56 | 4 +++- php-fpm/Dockerfile-70 | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/php-fpm/Dockerfile-55 b/php-fpm/Dockerfile-55 index e139c7cf..9d8af111 100644 --- a/php-fpm/Dockerfile-55 +++ b/php-fpm/Dockerfile-55 @@ -8,7 +8,9 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/ RUN apt-get update && apt-get install -y \ libpq-dev \ libmemcached-dev \ - curl + curl \ + --no-install-recommends \ + && rm -r /var/lib/apt/lists/* # Install extensions using the helper script provided by the base image RUN docker-php-ext-install \ diff --git a/php-fpm/Dockerfile-56 b/php-fpm/Dockerfile-56 index 27d00189..cea383ac 100644 --- a/php-fpm/Dockerfile-56 +++ b/php-fpm/Dockerfile-56 @@ -8,7 +8,9 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/ RUN apt-get update && apt-get install -y \ libpq-dev \ libmemcached-dev \ - curl + curl \ + --no-install-recommends \ + && rm -r /var/lib/apt/lists/* # Install extensions using the helper script provided by the base image RUN docker-php-ext-install \ diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index 063ea620..01dfb2c9 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -8,7 +8,9 @@ ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/ RUN apt-get update && apt-get install -y \ libpq-dev \ libmemcached-dev \ - curl + curl \ + --no-install-recommends \ + && rm -r /var/lib/apt/lists/* # Install extensions using the helper script provided by the base image RUN docker-php-ext-install \