[blogs-web/fpm] Install wp-cli



commit 7a94bfeaf01ddddef37d46100818882a740c9591
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Wed Dec 16 00:03:43 2020 +0100

    Install wp-cli

 Dockerfile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index c04e7da..7d04da6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,5 @@
 FROM wordpress:fpm
 
-SHELL ["/bin/bash", "-c"]
-    
 RUN apt-get update && apt-get install -y nginx-light && \
     ln -sf /dev/stdout /var/log/nginx/access.log && \
     ln -sf /dev/stderr /var/log/nginx/error.log
@@ -13,6 +11,10 @@ RUN apt-get update && apt-get install -y libldap-2.4-2 libldap2-dev && \
 ADD ipa-ca.crt /etc/ipa-ca.crt
 ADD ldap.conf /etc/ldap/ldap.conf
 
+RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
+    chmod +x wp-cli.phar && \
+    mv wp-cli.phar /usr/local/bin/wp
+
 RUN echo no | pecl install apcu && \
     docker-php-ext-enable apcu && \
     echo 'apc.enable=1' > /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]