summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2023-04-06 20:43:22 -0700
committerKonstantin Pavlov <thresh@nginx.com>2023-04-06 20:43:22 -0700
commitd400896c9bb0118ee49b034e483c86396eb5cf55 (patch)
treeb54c374fc77a8b599ec7e0f6cc8f850dc6191285
parent8082237740e2346286dde740ed7f9d39b45a06e1 (diff)
downloadunit-d400896c9bb0118ee49b034e483c86396eb5cf55.tar.gz
unit-d400896c9bb0118ee49b034e483c86396eb5cf55.tar.bz2
Docker: drop apt-get clean usage.
It's automatic in the Debian and Ubuntu containers: https://github.com/debuerreotype/debuerreotype/blob/5cf7949ecf1cec1afece267688bda64cd34a6817/scripts/debuerreotype-minimizing-config#L85-L109
-rw-r--r--pkg/docker/template.Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/docker/template.Dockerfile b/pkg/docker/template.Dockerfile
index ba267649..9e8adb25 100644
--- a/pkg/docker/template.Dockerfile
+++ b/pkg/docker/template.Dockerfile
@@ -66,7 +66,7 @@ RUN set -ex \
&& apt-get update \
&& apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) \
&& apt-get purge -y --auto-remove \
- && apt-get clean && rm -rf /var/lib/apt/lists/* \
+ && rm -rf /var/lib/apt/lists/* \
&& rm -f /requirements.apt \
&& ln -sf /dev/stdout /var/log/unit.log