aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2023-06-28 07:03:36 +0200
committerGitHub <noreply@github.com>2023-06-28 07:03:36 +0200
commitb99dee3ac31939d4fe0fb5c02e1c7949b2f5d20b (patch)
treec5fec855faf4dd9f794951d75cf9eea50e417cd1 /Dockerfile
parent89fc69249bd352fcfbed29aec960ef3761f6994f (diff)
downloadsyncthing-b99dee3ac31939d4fe0fb5c02e1c7949b2f5d20b.tar.gz
syncthing-b99dee3ac31939d4fe0fb5c02e1c7949b2f5d20b.zip
cmd/syncthing: Add environment variables for --home, --conf, and --data (fixes #8957) (#8952)
This allows environment overrides for our directories. This is advantageous because, apart from the obvious, it means we can set it in the Docker file and not add command line options there. Having the command line option as we did meant that it was impossible to use the Docker image for other commands than `serve` (because that is implied when we see other options on the command line).
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 4ecc0f52e..02f872de4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -44,5 +44,6 @@ 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
+ENV STHOMEDIR=/var/syncthing/config
RUN chmod 755 /bin/entrypoint.sh
-ENTRYPOINT ["/bin/entrypoint.sh", "/bin/syncthing", "-home", "/var/syncthing/config"]
+ENTRYPOINT ["/bin/entrypoint.sh", "/bin/syncthing"]