diff --git a/Dockerfile b/Dockerfile index 36de128..8f9c64e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,6 @@ FROM nginx:alpine ADD run.sh /run.sh ADD default.conf /etc/nginx/conf.d/default.conf -CMD sh run.sh +RUN chmod +x /run.sh + +CMD ["/run.sh"] diff --git a/run.sh b/run.sh index 38421fe..1f81126 100644 --- a/run.sh +++ b/run.sh @@ -25,4 +25,4 @@ sed -i "s|\${SERVER_REDIRECT_CODE}|${SERVER_REDIRECT_CODE}|" /etc/nginx/conf.d/d sed -i "s|\${SERVER_REDIRECT_PATH}|${SERVER_REDIRECT_PATH}|" /etc/nginx/conf.d/default.conf sed -i "s|\${SERVER_REDIRECT_SCHEME}|${SERVER_REDIRECT_SCHEME}|" /etc/nginx/conf.d/default.conf -nginx -g 'daemon off;' +exec nginx -g 'daemon off;'