aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorrubenbe <github-com-00ff86@vandamme.email>2018-07-09 20:09:04 +0200
committerJakob Borg <jakob@kastelo.net>2018-07-09 21:09:04 +0300
commite10d7260c2a976f0af01ca8fca3d76be6aa26c74 (patch)
tree76ad3471cf186d5d1994045d90ee1ece08ad4b98 /Dockerfile
parent409cb2beb85f542ba85ce35550ddcd5795404ee4 (diff)
downloadsyncthing-e10d7260c2a976f0af01ca8fca3d76be6aa26c74.tar.gz
syncthing-e10d7260c2a976f0af01ca8fca3d76be6aa26c74.zip
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%.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 1 insertions, 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