Commit a3ba0e14 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Maintain wp-cli.phar name in image, move to /usr/local/lib

parent 58d0e025
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -37,7 +37,8 @@ WORKDIR /app
VOLUME /app/wp-content
ENV WORDPRESS_ROOT=/app

ADD https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar /usr/local/bin/wp.php
ADD https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
    /usr/local/lib/wp-cli.phar
COPY wp.sh /usr/local/bin/wp
COPY --from=compile /usr/local/etc/php /usr/local/etc/php
COPY --from=compile /usr/local/lib/php /usr/local/lib/php
+1 −1
Original line number Diff line number Diff line
@@ -3,4 +3,4 @@
# installing it as root is idiocy. WP needs to be installed owned by a user 
# seperate from the server's user. 'root' is available for such, besides which 
# root in a container is not really root.
exec php /usr/local/bin/wp.php --allow-root "$@"
exec php /usr/local/lib/wp-cli.phar --allow-root "$@"