summaryrefslogtreecommitdiff
path: root/docker-entrypoint.sh
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-12-13 00:52:01 -0800
committerElizabeth Hunt <me@liz.coffee>2025-12-13 00:52:01 -0800
commit35691c5a74d8093d1bb4629f3d96e27af3690615 (patch)
tree319cc5abb63e9a129a9ad04c6e484a5c61b4db4d /docker-entrypoint.sh
parent666df5fc3b64c6cc9f6fc03fed46a441d7fcd315 (diff)
downloadadelie-35691c5a74d8093d1bb4629f3d96e27af3690615.tar.gz
adelie-35691c5a74d8093d1bb4629f3d96e27af3690615.zip
Fix docker stage
Diffstat (limited to 'docker-entrypoint.sh')
-rw-r--r--docker-entrypoint.sh10
1 files changed, 2 insertions, 8 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
index 55e2b6c..784a5a0 100644
--- a/docker-entrypoint.sh
+++ b/docker-entrypoint.sh
@@ -1,21 +1,15 @@
#!/bin/sh
set -e
-# If HOST is set, replace /static/ URLs in CSS and JS files
if [ ! -z "$HOST" ]; then
- # Escape special characters for sed
ESCAPED_HOST=$(echo "$HOST" | sed 's/[\/&]/\\&/g')
- # Replace /static/ paths in all CSS files
find /usr/share/nginx/html -name "*.css" -type f -exec sed -i "s|/static/|${ESCAPED_HOST}/static/|g" {} \;
-
- # Replace /static/ paths in all JS files
find /usr/share/nginx/html -name "*.js" -type f -exec sed -i "s|/static/|${ESCAPED_HOST}/static/|g" {} \;
- echo "✓ Updated static URLs to use HOST: $HOST"
+ echo "Updated static URLs to use HOST: $HOST"
else
- echo "✓ Serving static assets from /static/ (local, no HOST set)"
+ echo "Serving static assets from /static/"
fi
-# Start nginx in foreground
exec nginx -g "daemon off;"