Files
bookstore/docker/php/Dockerfile
T
twooeyandClaude Sonnet 5 c9d637c907 Week 1 infrastructure: Docker environments, deploy pipeline, bookstore-core scaffold
Docker Compose environments for dev/staging/production (MariaDB, Redis,
Caddy, Action Scheduler cron sidecar), an idempotent deploy script,
git-hook-based deploy pipeline, backup/restore scripts, and the
bookstore-core plugin stub with WooCommerce HPOS compatibility declared.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-27 09:50:18 -04:00

24 lines
716 B
Docker

# PHP-FPM + WordPress core, plus the tooling deploy.sh and the cron
# sidecar need: wp-cli, composer, and the redis extension for object cache.
FROM wordpress:php8.3-fpm
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
git \
unzip \
less \
default-mysql-client \
&& pecl install redis \
&& docker-php-ext-enable redis \
&& rm -rf /var/lib/apt/lists/*
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
RUN curl -o /usr/local/bin/wp -sSL \
https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
&& chmod +x /usr/local/bin/wp
COPY php.ini /usr/local/etc/php/conf.d/zz-bookstore.ini
WORKDIR /var/www/html