#!/bin/bash # Use envsubst to replace variables in the config file template envsubst < app/openapi.yaml.template > app/openapi.yaml envsubst < app/ai-plugin.json.template > app/ai-plugin.json # Print substituted config for verification (optional) echo "file openapi.yaml" cat app/openapi.yaml echo "file ai-plugin.json" cat app/ai-plugin.json # Execute the main application command exec "$@"