Skip to content
Snippets Groups Projects
Commit 402a85fc authored by ale's avatar ale
Browse files

Install wp-cli

parent de3587f8
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,11 @@ COPY docker/conf /tmp/conf
COPY docker/build.sh /tmp/build.sh
COPY --from=gobuild /src/modsec_logger /usr/local/bin/modsec_logger
# Install wp-cli in /usr/local/bin (aliased as "wp").
ADD https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar /usr/local/bin/wp-cli.phar
COPY docker/wp /usr/local/bin/wp
RUN chmod 0755 /usr/local/bin/wp /usr/local/bin/wp-cli.phar
RUN /tmp/build.sh && rm /tmp/build.sh
# For testing purposes (8080 is the default port of apache2-php-base).
......
#!/bin/sh
exec /usr/local/bin/wp-cli.phar --path=/opt/noblogs/www "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment