From b876609a51fdb18b9f100354cc0c9eb5e6db734f Mon Sep 17 00:00:00 2001 From: Carlos Mogas da Silva Date: Sun, 21 Oct 2018 23:32:43 +0100 Subject: [PATCH] Add entrypoint --- Dockerfile | 2 ++ entrypoint.sh | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index 67bd6a4..6bb0481 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,3 +8,5 @@ RUN mkdir ${WEBROOT} && mkdir /storage VOLUME ["/storage"] COPY share_v2.php ${WEBROOT} + +ENTRYPOINT /entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..e840522 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +sed -i -e "s/^\(\$CONFIG_STORE_DIR = \).*/\1'\/storage'/" /webroot/share_v2.php +sed -i -e "s/^\(\$CONFIG_SECRET = \).*/\1'${SECRET_KEY}'/" /webroot/share_v2.php + +exec "/start.sh"