summaryrefslogtreecommitdiff
path: root/docker-entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker-entrypoint.sh')
-rw-r--r--docker-entrypoint.sh16
1 files changed, 0 insertions, 16 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
deleted file mode 100644
index b4bade6..0000000
--- a/docker-entrypoint.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-set -e
-
-if [ ! -z "$HOST" ]; then
- ESCAPED_HOST=$(echo "$HOST" | sed 's/[\/&]/\\&/g')
-
- find /usr/share/nginx/html -name "*.css" -type f -exec sed -i "s|/static/|${ESCAPED_HOST}/|g" {} \;
- find /usr/share/nginx/html -name "*.js" -type f -exec sed -i "s|/static/|${ESCAPED_HOST}/|g" {} \;
- find /usr/share/nginx/html -name "*.html" -type f -exec sed -i "s|/static/|${ESCAPED_HOST}/|g" {} \;
-
- echo "Updated static URLs to use HOST: $HOST"
-else
- echo "Serving static assets from root"
-fi
-
-exec nginx -g "daemon off;"