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"