Last active
November 30, 2017 17:13
-
-
Save kevholditch/e7c7af9fea46af9690c6bd35abf0f5b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/dumb-init /bin/bash | |
set -e | |
export DNS_ADDR=`cat /etc/resolv.conf | grep nameserver | cut -d' ' -f2-` | |
envsubst '$DNS_ADDR' < /etc/nginx/nginx.template > /usr/local/openresty/nginx/conf/nginx.conf | |
/usr/local/openresty/bin/openresty -g "daemon off;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment