We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87d3d45 commit 3d0c667Copy full SHA for 3d0c667
Dockerfile
@@ -67,8 +67,10 @@ RUN curl -o wordpress.tar.gz -SL https://wordpress.org/wordpress-${WORDPRESS_VER
67
&& chown -R nobody:nobody /usr/src/wordpress
68
69
# Add WP CLI
70
+ENV WP_CLI_CONFIG_PATH /usr/src/wordpress/wp-cli.yml
71
RUN curl -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
72
&& chmod +x /usr/local/bin/wp
73
+COPY --chown=nobody:nobody wp-cli.yml /usr/src/wordpress/
74
75
# WP config
76
COPY --chown=nobody:nobody wp-config.php /usr/src/wordpress
wp-cli.yml
@@ -0,0 +1,2 @@
1
+# This file is used by the wp-cli tool to define the path to the WordPress installation
2
+path: /usr/src/wordpress
0 commit comments