From 50f40c6e3e27f2eff29afc5ad9f9b77337e90106 Mon Sep 17 00:00:00 2001 From: magdev Date: Tue, 3 Feb 2026 19:45:08 +0100 Subject: [PATCH] Add WP-CLI and update to php8.4 Co-Authored-By: Claude Opus 4.5 --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d3337e9..ef0aaf3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,15 @@ ARG PHP_VERSION=8.4 FROM wordpress:php${PHP_VERSION} AS upstream +WORKDIR /tmp RUN pecl install redis apcu; \ docker-php-ext-enable redis apcu; +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; + + FROM upstream AS runtime -WORKDIR /var/www/html +WORKDIR /var/www/html \ No newline at end of file