# Not the latest version to be able to test updates FROM wordpress:6.0.0 WORKDIR /usr/src/wordpress RUN set -eux; \ find /etc/apache2 -name '*.conf' -type f -exec sed -ri -e "s!/var/www/html!$PWD!g" -e "s!Directory /var/www/!Directory $PWD!g" '{}' +; \ cp -s wp-config-docker.php wp-config.php RUN echo "define('FS_METHOD','direct');" >> wp-config.php