resolve bug wp-cli.phar

This commit is contained in:
asus
2023-09-03 18:16:13 +02:00
parent a1532e1873
commit 6be941be78
2 changed files with 15 additions and 57 deletions

View File

@@ -46,9 +46,11 @@ RUN adduser -S www-data && \
ENV PHP_VERSION="php-fpm7"
# install wp-cli : https://wp-cli.org/#installing
# bug with wp commands : https://github.com/wp-cli/config-command/issues/31
# change : mv wp-cli.phar /usr/local/bin/wp -> cp wp-cli.phar /usr/local/bin/wp
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
cp wp-cli.phar /usr/local/bin/wp
COPY ./conf/wp_entrypoint.sh ./