diff --git a/Dockerfile b/Dockerfile index e6e92e0..72a01be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ ARG ENV ENV DEPLOY_HOOK="/app/nginx/reload.sh" ENV TLDEXTRACT_CACHE_PATH=/data/lexicon_tld_set +ENV DNSROBOCERT="enable" RUN if [ "$ENV" = "rex" ]; then echo "Change depends" \ && pip config set global.index-url http://192.168.200.26:13141/root/pypi/+simple \ diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index a9236ab..cc4903e 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -25,8 +25,13 @@ done # start plush worker /usr/local/bin/python -m plush worker start + # start dnsrobocert service -/usr/local/bin/dnsrobocert --config /config/dnsrobocert.yml --directory /data/dnsrobocert +if [ "$DNSROBOCERT" = "enable" ]; then + /usr/local/bin/dnsrobocert --config /config/dnsrobocert.yml --directory /data/dnsrobocert; +else + python; +fi # for dev if [ "$ENV" = "rex" ]; then python; fi