If you want to prevent the container from auto-generating a fresh WordPress installation, create the following empty files in your /var/www/html directory (either on your host if bind mounting, or inside the container):
mkdir -p /var/www/html/wp-includes
touch /var/www/html/index.php /var/www/html/wp-includes/version.php /var/www/html/wp-config.php
cd html
mkdir -p wp-includes
touch index.php wp-includes/version.php wp-config.php
This will ensure the entrypoint script does not copy WordPress files or auto-generate a config file.
- tag: tediscript/apache-php:7.4-wordpress
- tag: tediscript/apache-php:8.2-wordpress
- tag: tediscript/apache-php:8.3-wordpress
- reference: https://make.wordpress.org/hosting/handbook/server-environment/