#!/bin/bash set -e # Replace environment variables in JavaScript files if needed # This is useful for runtime configuration in Docker containers # Example: Replace API_URL placeholder with actual environment variable # if [ ! -z "$API_URL" ]; then # find /usr/local/apache2/htdocs -name '*.js' -exec sed -i "s|VITE_API_URL_PLACEHOLDER|$API_URL|g" {} + # fi # Start Apache in foreground echo "Starting Apache HTTP Server..." exec httpd-foreground