1 Commits
v0.1.6 ... dev

Author SHA1 Message Date
5e4af247fa Make PHP version configurable in Dockerfile
Add BuildKit syntax directive and PHP_VERSION build arg (default 8.4)
to allow building with different PHP versions without editing the file.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 03:55:52 +01:00

View File

@@ -1,3 +1,6 @@
#syntax=docker/dockerfile:1
ARG PHP_VERSION=8.4
###############################################################################
# Stage 1 — Download WooCommerce from WordPress.org
###############################################################################
@@ -48,7 +51,7 @@ RUN composer install --no-dev --optimize-autoloader --no-interaction
###############################################################################
# Stage 4 — Final WordPress image
###############################################################################
FROM wordpress:php8.4 AS wp_runtime
FROM wordpress:php${PHP_VERSION} AS wp_runtime
RUN curl -sSfL -o /usr/local/bin/wp \
https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \