You've already forked wc-bootstrap
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>
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user