#!/bin/bash # Enable exporting variables set -a # Source the default env variables echo "Sourcing build environment..." source .env # If there is a .env.local present, source it echo "Sourcing custom environment..." if [ -f .env.local ]; then source ./.env.local fi # Disable exporting variables set +a # Run the given command exec "$@"