From c6fd3fc1632b40bdfc5a8e4725b23a45c5636a94 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Wed, 10 Jul 2024 13:01:49 +0900 Subject: [PATCH] Do not remove runtime package https://github.com/fluent/fluentd-docker-image/pull/372 Above pull request introduces "apt-get purge '*-dev'", it is intended to remove only needless development packages, but actually --auto-remove removes also runtime packages. This behavior is not intended at all, so drop --auto-remove option. Signed-off-by: Kentaro Hayashi --- Dockerfile.template.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.template.erb b/Dockerfile.template.erb index 5691658..ae52660 100644 --- a/Dockerfile.template.erb +++ b/Dockerfile.template.erb @@ -140,7 +140,7 @@ RUN apt-get update \ # https://github.com/fluent/fluentd-docker-image/pull/350 && (echo "je_cv_madv_free=no" > config.cache) && ./configure -C && make \ && mv lib/libjemalloc.so.2 /usr/lib \ - && apt-get purge -y --auto-remove \ + && apt-get purge -y \ -o APT::AutoRemove::RecommendsImportant=false \ $buildDeps \ '*-dev' \