From b961bb84a4338966facc0e857b70c3381d8d7a02 Mon Sep 17 00:00:00 2001 From: Chris Park Date: Fri, 13 Nov 2026 11:42:09 +1030 Subject: [PATCH] resolve conflict --- .github/workflows/docker-build.yml | 3 +-- Dockerfile | 9 ++------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index e7dfca1..884b58d 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -22,7 +22,7 @@ jobs: strategy: fail-fast: false matrix: - php-version: ['8.3', '8.4'] + php-version: ['8.1', '8.2', '8.3', '8.4'] image: # Full pipe image (last Dockerfile stage) - target: '' @@ -38,7 +38,6 @@ jobs: push: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging' }} build-args: | PHP_VERSION=${{ matrix.php-version }} - ALPINE_VERSION=${{ vars.ALPINE_VERSION }} # Tags: 8.4, 8.4-runtime (main); 8.4-experimental, 8.4-runtime-experimental (staging) tags: | type=raw,value=${{ matrix.php-version }}${{ matrix.image.suffix }}${{ github.ref_name == 'staging' && '-experimental' || '' }} diff --git a/Dockerfile b/Dockerfile index 27c2d80..ab4c3ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,7 @@ ARG PHP_VERSION -ARG ALPINE_VERSION -FROM busybox:latest AS validator -ARG ALPINE_VERSION -RUN : "${ALPINE_VERSION:?ALPINE_VERSION build argument is required}" && touch /validated - -FROM php:${PHP_VERSION}-alpine${ALPINE_VERSION} AS standards-runtime -COPY --from=validator /validated /tmp/.validated +# Use the latest alpine version that is compatible with the specified PHP version. +FROM php:${PHP_VERSION}-cli-alpine AS standards-runtime # Install system dependencies RUN apk update && apk add --no-cache \