Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 859d3da9d4 | |||
| 50f40c6e3e |
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user