From 947b5920fd04610145032db1deb7caec319bfe8f Mon Sep 17 00:00:00 2001 From: "Julius von Froreich (jvf)" Date: Fri, 17 Aug 2018 15:06:08 +0200 Subject: [PATCH] clean apt artifacts after installing packages reduces image size marginally --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9f13015..ca13afd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,9 @@ RUN apt-get update && \ make=4.0-8.1 \ gcc=4:4.9.2-2 \ g++=4:4.9.2-2 \ - libc6-dev=2.19-18+deb8u10 + libc6-dev=2.19-18+deb8u10 && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* RUN git clone https://github.com/Financial-Times/polyfill-service.git /polyfill