Add WP-CLI and update to php8.4
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user