Installing WP-CLI in a PHP/WordPress container

Dockerfile:

FROM wordpress:php7.4-fpm-alpine # Install WPCLI RUN curl -sS -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \ chmod +x /usr/local/bin/wp # Install MySQL Client for DB related WP-CLI commands RUN apk update && apk add -f mysql-client ...
Code language: Dockerfile (dockerfile)

Posted

in

, ,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *