From e10d7260c2a976f0af01ca8fca3d76be6aa26c74 Mon Sep 17 00:00:00 2001 From: rubenbe Date: Mon, 9 Jul 2018 20:09:04 +0200 Subject: [PATCH] dockerfile: Install su-exec without updating. (#5051) * Using --no-cache instead prevents unnecessarily adding about 1.3MB of Alpine package data * This reduces the uncompressed image size with about 6%. --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 08acaa041..c57768601 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,8 +18,7 @@ RUN apk add --no-cache ca-certificates COPY --from=builder /go/src/github.com/syncthing/syncthing/syncthing /bin/syncthing -RUN apk update \ - && apk add su-exec +RUN apk add --no-cache su-exec ENV STNOUPGRADE=1 ENV PUID=1000