diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-10-12 07:44:14 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-10-19 08:08:12 +0300 |
commit | c7455c433c6ff52cbf31480463a46b59a7d8062e (patch) | |
tree | 82702a8ece157812504ce5f3774159f9dd50b151 /docker | |
parent | d6b7267bc295cb39c55dfd7291cba3f0bb1cdf77 (diff) |
docker: better cleanup call
Diffstat (limited to 'docker')
-rw-r--r-- | docker/lamp/Dockerfile | 2 | ||||
-rw-r--r-- | docker/nextcloud/Dockerfile | 2 | ||||
-rw-r--r-- | docker/nextcloudpi/Dockerfile | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/docker/lamp/Dockerfile b/docker/lamp/Dockerfile index 516dc204..2736b11f 100644 --- a/docker/lamp/Dockerfile +++ b/docker/lamp/Dockerfile @@ -26,7 +26,7 @@ sed -i "s|^datadir.*|datadir = /data-ro/database|" /etc/mysql/mariadb.conf.d/90- # package cleanup apt-get autoremove -y; \ apt-get clean; \ -rm /var/lib/apt/lists/* -f; \ +find /var/lib/apt/lists -type f | xargs rm; \ rm -rf /usr/share/man/*; \ rm -rf /usr/share/doc/*; \ rm /var/cache/debconf/*-old; \ diff --git a/docker/nextcloud/Dockerfile b/docker/nextcloud/Dockerfile index 7fc98da2..a9c71f76 100644 --- a/docker/nextcloud/Dockerfile +++ b/docker/nextcloud/Dockerfile @@ -30,7 +30,7 @@ mysqladmin -u root shutdown; \ # package cleanup apt-get autoremove -y; \ apt-get clean; \ -rm /var/lib/apt/lists/* -f; \ +find /var/lib/apt/lists -type f | xargs rm; \ rm -rf /usr/share/man/*; \ rm -rf /usr/share/doc/*; \ rm /var/cache/debconf/*-old; \ diff --git a/docker/nextcloudpi/Dockerfile b/docker/nextcloudpi/Dockerfile index ac4e539f..1458cd9d 100644 --- a/docker/nextcloudpi/Dockerfile +++ b/docker/nextcloudpi/Dockerfile @@ -52,7 +52,7 @@ apt-get purge -y make gcc libc-dev; \ # package clean up apt-get autoremove -y; \ apt-get clean; \ -rm -f /var/lib/apt/lists/*; \ +find /var/lib/apt/lists -type f | xargs rm; \ find /var/log -type f -exec rm {} \; ; \ rm -rf /usr/share/man/*; \ rm -rf /usr/share/doc/*; \ |