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

Move WP-CLI install to scripts/install-wp.sh

parent d033f081
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -20,8 +20,6 @@ ARG wp_version=latest
WORKDIR /app
ENV WORDPRESS_ROOT=/app

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
+4 −0
Original line number Diff line number Diff line
@@ -3,6 +3,10 @@ set -eux

WP_PASSWORD_HASH=https://raw.githubusercontent.com/Ayesh/WordPress-Password-Hash/1.5.1

# Install WP-CLI
curl -sSL ${WP_CLI_URL} \
    >/usr/local/lib/wp-cli.phar

# Install Wordpress core
wp core download --skip-content --locale=en_GB --version=$1