From 58081c9d41d39702db5367667bd14e9cb7ac90a6 Mon Sep 17 00:00:00 2001 From: Felix Bartels Date: Mon, 19 Nov 2018 13:12:31 +0100 Subject: [PATCH] set a different workdir, that can be easily mounted over Signed-off-by: Felix Bartels --- base/Dockerfile | 2 +- core/Dockerfile | 2 ++ webapp/Dockerfile | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/base/Dockerfile b/base/Dockerfile index 59f519b..7cc47f6 100644 --- a/base/Dockerfile +++ b/base/Dockerfile @@ -3,7 +3,7 @@ FROM debian:stretch LABEL maintainer=az@zok.xyz \ version="2.0" -RUN mkdir -p /kopano/repo /kopano/data /kopano/helper +RUN mkdir -p /kopano/repo /kopano/data /kopano/helper /kopano/path WORKDIR /kopano/repo ARG DEBIAN_FRONTEND=noninteractive diff --git a/core/Dockerfile b/core/Dockerfile index 2f337c6..585998a 100644 --- a/core/Dockerfile +++ b/core/Dockerfile @@ -46,6 +46,8 @@ ENV SERVICE_TO_START=server COPY kcconf.py defaultconfigs/ start-service.sh /kopano/ COPY services /kopano/services +WORKDIR /kopano/path + ENTRYPOINT ["/usr/bin/dumb-init", "--"] CMD [ "/kopano/start-service.sh" ] diff --git a/webapp/Dockerfile b/webapp/Dockerfile index cee88bc..91f1a54 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -97,5 +97,7 @@ COPY start.sh /kopano/start.sh ENV LANG en_US.UTF-8 +WORKDIR /kopano/path + ENTRYPOINT ["/usr/bin/dumb-init", "--"] CMD [ "/kopano/start.sh" ]