From fdd6f4849036216742594a20f6b984f8e1188ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Mon, 8 Jan 2018 21:41:42 +0100 Subject: [PATCH] fix: run apk without cache running apk without a cache resulted in a 15% smaller image, coming in at just over 6MB --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9001846..edee92f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,10 @@ LABEL maintainer="Jan Christian Grünhage " ENV UID=1337 \ GID=1337 -RUN apk update \ - && apk upgrade \ +RUN apk upgrade \ + --no-cache \ && apk add \ + --no-cache \ s6 \ su-exec ADD root /