diff options
author | Kristofer Hallin <kristofer@sunet.se> | 2022-01-25 15:39:14 +0100 |
---|---|---|
committer | Kristofer Hallin <kristofer@sunet.se> | 2022-01-25 15:39:14 +0100 |
commit | f4d44b76264c32b23d48bb8a3ed728b39d515854 (patch) | |
tree | d70b0e38b063a48d1a25774d6114bbdc2eec671d /nginx-entrypoint.sh | |
parent | d1245f7f2ba2156159a369e8511e85d4e02deedb (diff) |
Dockerize the whole thing.
Diffstat (limited to 'nginx-entrypoint.sh')
-rw-r--r-- | nginx-entrypoint.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nginx-entrypoint.sh b/nginx-entrypoint.sh new file mode 100644 index 0000000..64108bb --- /dev/null +++ b/nginx-entrypoint.sh @@ -0,0 +1,6 @@ +WWW_DIR=/usr/share/nginx/html +INJECT_FILE_SRC="${WWW_DIR}/inject_template.js" +INJECT_FILE_DST="${WWW_DIR}/inject.js" +envsubst < "${INJECT_FILE_SRC}" > "${INJECT_FILE_DST}" +[ -z "$@" ] && nginx -g 'daemon off;' || $@ + |