aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJames O'Beirne <wild-github@au92.org>2022-12-16 02:16:22 -0500
committerGitHub <noreply@github.com>2022-12-16 08:16:22 +0100
commit358d2143e23f5f85a2ce0d268778014b7f87fc77 (patch)
tree1d02f89d2f905dea26e3e68d0ecae116c90da6ba /Dockerfile
parent622ade40ad1dad8de12987dfed6893ffc14e94b8 (diff)
downloadsyncthing-358d2143e23f5f85a2ce0d268778014b7f87fc77.tar.gz
syncthing-358d2143e23f5f85a2ce0d268778014b7f87fc77.zip
docker: Ensure entrypoint is executable (#8719)
On systems with safe umasks (`umask 077`), the entrypoint as copied from the host may not be executable by other users. Ensure that it is set to be within the Dockerfile.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index dd25db10f..c2c93f7b8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,4 +26,5 @@ HEALTHCHECK --interval=1m --timeout=10s \
CMD curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1
ENV STGUIADDRESS=0.0.0.0:8384
+RUN chmod 755 /bin/entrypoint.sh
ENTRYPOINT ["/bin/entrypoint.sh", "/bin/syncthing", "-home", "/var/syncthing/config"]