From 98f9ca6796fcf5ed3ad508726d017a2e62522fd8 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Tue, 2 Nov 2021 09:08:03 -0400 Subject: [PATCH] build: ensure we purge apt cache after install --- examples/laravel/Dockerfile | 5 ++++- examples/yii2/Dockerfile | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/examples/laravel/Dockerfile b/examples/laravel/Dockerfile index 73bd48a..0f87fe7 100644 --- a/examples/laravel/Dockerfile +++ b/examples/laravel/Dockerfile @@ -19,7 +19,10 @@ RUN apt-get update && apt-get install -y \ libmagickwand-dev \ libghc-postgresql-libpq-dev \ libbz2-dev \ - libfontconfig && rm -rf /var/lib/apt/lists/* + libfontconfig \ + && apt-get -y autoremove \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # PHP Extensions needed for Laravel RUN docker-php-ext-install calendar zip intl pdo_mysql bcmath opcache pdo diff --git a/examples/yii2/Dockerfile b/examples/yii2/Dockerfile index 1a7b0d8..ad4fbcb 100644 --- a/examples/yii2/Dockerfile +++ b/examples/yii2/Dockerfile @@ -16,7 +16,10 @@ RUN apt-get update && apt-get install -y \ libmagickwand-dev \ libghc-postgresql-libpq-dev \ libbz2-dev \ - libfontconfig && rm -rf /var/lib/apt/lists/* + libfontconfig \ + && apt-get -y autoremove \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # PHP Extensions needed for yii2 RUN docker-php-ext-install calendar zip mcrypt intl mbstring pdo_mysql bcmath opcache pdo pdo_pgsql