diff --git a/Dockerfile b/Dockerfile index 65414744..aa8fb293 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,8 +67,10 @@ RUN curl -o wordpress.tar.gz -SL https://wordpress.org/wordpress-${WORDPRESS_VER && chown -R nobody:nobody /usr/src/wordpress # Add WP CLI +ENV WP_CLI_CONFIG_PATH /usr/src/wordpress/wp-cli.yml RUN curl -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \ && chmod +x /usr/local/bin/wp +COPY --chown=nobody:nobody wp-cli.yml /usr/src/wordpress/ # WP config COPY --chown=nobody:nobody wp-config.php /usr/src/wordpress diff --git a/wp-cli.yml b/wp-cli.yml new file mode 100644 index 00000000..28952293 --- /dev/null +++ b/wp-cli.yml @@ -0,0 +1,2 @@ +# This file is used by the wp-cli tool to define the path to the WordPress installation +path: /usr/src/wordpress \ No newline at end of file