Compare commits

2 Commits
php8.4 ... main

Author SHA1 Message Date
859d3da9d4 Add WP-CLI to README features
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 19:47:30 +01:00
50f40c6e3e Add WP-CLI and update to php8.4
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 19:45:08 +01:00
2 changed files with 8 additions and 1 deletions

View File

@@ -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

View File

@@ -7,6 +7,7 @@ Custom WordPress Docker image with Redis and APCu extensions for object caching.
- Based on official `wordpress:php8.4` image
- Redis extension for external object caching
- APCu extension for in-memory caching
- WP-CLI pre-installed for command-line WordPress management
## Usage