Commit 38f24d05 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Improve WP-CLI with some small changes

- Sets a higher memory limit (512MB) for the WP-CLI script
- Sets the pager to 'more'; it is installed unlike the default 'less'.
parent 73839038
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -55,5 +55,8 @@ RUN wp core download --skip-content --locale=en_GB --version=${wp_version} \
COPY opcache.ini /usr/local/etc/php/conf.d/opcache-recommended.ini
COPY entrypoint.sh /bin/entrypoint

# PAGER is used by the wp-cli tool, the default 'less' is not installed
ENV PAGER=more

ENTRYPOINT ["/bin/entrypoint"]
CMD ["php-fpm"]
+1 −1
Original line number Diff line number Diff line
@@ -3,4 +3,4 @@
# installing it as root is idiocy. WP needs to be installed owned by a user 
# seperate from the server's user. 'root' is available for such, besides which 
# root in a container is not really root.
exec php /usr/local/lib/wp-cli.phar --allow-root "$@"
exec php -d memory_limit=512M /usr/local/lib/wp-cli.phar --allow-root "$@"