#!/bin/sh # Exit immediately if a command exits with a non-zero status. set -e # Substitute environment variables in the nginx template envsubst '${VITE_API_PROXY_TARGET}' < /etc/nginx/templates/nginx.conf.template > /etc/nginx/nginx.conf # Execute the command passed to this script, e.g., "nginx -g 'daemon off;'" exec "$@"