docker-entrypoint.sh 391 B

12345678910111213
  1. #!/bin/sh
  2. set -e
  3. if [[ ! -z "$BASE_URL_OVERRIDE" ]]; then
  4. echo "running with BASE_URL=${BASE_URL_OVERRIDE}"
  5. sed -i "s^{PLACEHOLDER_BASE_URL}^$BASE_URL_OVERRIDE^g" /var/www/*.js
  6. else
  7. echo "running with BASE_URL=${BASE_URL}"
  8. sed -i "s^{PLACEHOLDER_BASE_URL}^$BASE_URL^g" /var/www/*.js
  9. fi
  10. # Run the parent (nginx) container's entrypoint script
  11. exec /docker-entrypoint.sh "$@"