Browse Source

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%.
rubenbe 7 years ago
parent
commit
e10d7260c2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Dockerfile

+ 1 - 2
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