From 9712fb8392b11610c1e2e66f72ea3b5a7eaf6a0a Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Tue, 11 Oct 2016 22:01:23 +0300 Subject: [PATCH] - Remove temporary files and APT's cache, reduce image size. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 748681f..66bfcb4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM debian:stretch ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && \ - apt-get install -y knot-dnsutils knot-host knot-resolver dma bsd-mailx + apt-get install -y knot-dnsutils knot-host knot-resolver dma bsd-mailx && \ + rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] CMD ["/bin/bash", "--login"] -- GitLab