File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 44
55# Install packages from testing repo's
66RUN apk --no-cache add php7 php7-fpm php7-mysqli php7-json php7-openssl php7-curl \
7- php7-zlib php7-xml php7-phar php7-intl php7-dom php7-xmlreader php7-ctype \
8- php7-mbstring php7-gd nginx supervisor curl bash
7+ php7-zlib php7-xml php7-phar php7-intl php7-dom php7-xmlreader php7-xmlwriter \
8+ php7-simplexml php7-ctype php7- mbstring php7-gd nginx supervisor curl bash less
99
1010# Configure nginx
1111COPY config/nginx.conf /etc/nginx/nginx.conf
@@ -35,6 +35,10 @@ RUN curl -o wordpress.tar.gz -SL https://wordpress.org/wordpress-${WORDPRESS_VER
3535 && rm wordpress.tar.gz \
3636 && chown -R nobody.nobody /usr/src/wordpress
3737
38+ # Add WP CLI
39+ RUN curl -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
40+ && chmod +x /usr/local/bin/wp
41+
3842# WP config
3943COPY wp-config.php /usr/src/wordpress
4044RUN chown nobody.nobody /usr/src/wordpress/wp-config.php && chmod 640 /usr/src/wordpress/wp-config.php
Original file line number Diff line number Diff line change 3232 -e "FS_METHOD=direct" \
3333 trafex/wordpress
3434
35+ ### WP-CLI
3536
36- ### Inspired by
37+ This image includes [ wp-cli] ( https://wp-cli.org/ ) which can be used like this:
38+
39+ docker exec <your container name> /usr/local/bin/wp --path=/usr/src/wordpress <your command>
40+
41+
42+ ## Inspired by
3743
3844* https://hub.docker.com/_/wordpress/
3945* https://codeable.io/wordpress-developers-intro-to-docker-part-two/
You can’t perform that action at this time.
0 commit comments