From f3bceef0dbaa5c582b14e4569b35c7115b2e67ce Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Tue, 11 Oct 2016 22:01:52 +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 78718c6..bdf5708 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM debian:jessie ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && \ - apt-get install -y unbound unbound-host dnsutils dma bsd-mailx + apt-get install -y unbound unbound-host dnsutils 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