#!/bin/bash set -e # Run WP-CLI setup in background; it waits for wp-config.php and the DB /usr/local/bin/wp-init-bg.sh & # Hand off to the official WordPress entrypoint (writes wp-config.php, starts Apache) exec /usr/local/bin/docker-entrypoint.sh "$@"