aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorAndrew Rabert <6550543+nvllsvm@users.noreply.github.com>2018-08-15 03:33:35 -0400
committerAudrius Butkevicius <audrius.butkevicius@gmail.com>2018-08-15 08:33:35 +0100
commitada5ab74d26b7c0b1c2e564cf64d4713cf9735a7 (patch)
treecde6d7a6bd8d7cdfa55243848c60f3c327499a65 /Dockerfile
parent0bc3ae15ae4f37d427ef5d35fa2204748cf86960 (diff)
downloadsyncthing-ada5ab74d26b7c0b1c2e564cf64d4713cf9735a7.tar.gz
syncthing-ada5ab74d26b7c0b1c2e564cf64d4713cf9735a7.zip
Dockerfile: Reduce number of container layers for final image (#5124)
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 2 insertions, 8 deletions
diff --git a/Dockerfile b/Dockerfile
index faf1a44e9..f407b86ce 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,17 +14,11 @@ EXPOSE 8384 22000 21027/udp
VOLUME ["/var/syncthing"]
-RUN apk add --no-cache ca-certificates
+RUN apk add --no-cache ca-certificates su-exec
COPY --from=builder /go/src/github.com/syncthing/syncthing/syncthing /bin/syncthing
-RUN apk add --no-cache su-exec
-
-ENV STNOUPGRADE=1
-ENV PUSR=syncthing
-ENV PUID=1000
-ENV PGRP=syncthing
-ENV PGID=1000
+ENV STNOUPGRADE=1 PUSR=syncthing PUID=1000 PGRP=syncthing PGID=1000
HEALTHCHECK --interval=1m --timeout=10s \
CMD nc -z localhost 8384 || exit 1