From 11d850aa7eb19ad4ecdbcbbc4f7e9839cb3c3171 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 31 Dec 2020 19:39:32 +0200 Subject: [PATCH] Things I had laying around but didn't commit. --- .dockerignore | 3 +++ Dockerfile | 3 ++- entrypoint.sh | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..dfa4714 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.git/ +README* +LICENSE* diff --git a/Dockerfile b/Dockerfile index 9a1e384..1e9fcd2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,8 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \ mkdir /syncevolution +VOLUME /syncevolution COPY entrypoint.sh /entrypoint.sh EXPOSE 9000 ENTRYPOINT ["/entrypoint.sh"] -CMD ["--start-dbus-session", "http://0.0.0.0:9000/syncevolution"] +CMD ["syncevo-http-server", "--start-dbus-session", "http://0.0.0.0:9000/syncevolution"] diff --git a/entrypoint.sh b/entrypoint.sh index dc10e37..424c9bf 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -31,4 +31,4 @@ syncevolution --configure \ syncevolution --configure \ --source-property sync=slow \ cellphone addressbook calendar todo memo calendar+todo -exec /usr/bin/syncevo-http-server $@ +eval exec $@ -- GitLab