From 6ab62409cbdf722af02bf8aa45fa25a9dee436c8 Mon Sep 17 00:00:00 2001 From: Stefan Stidl Date: Sat, 6 Dec 2025 19:59:02 +0100 Subject: [PATCH] feat: update Dockerfile to use PHP 8.3-alpine3.19 and add QEMU setup for multi-arch builds --- .github/workflows/docker-publish.yml | 4 ++++ Dockerfile.alpine | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 36eb698..537dc4c 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -57,6 +57,10 @@ jobs: curl -L https://ipinfo.io/data/free/country_asn.mmdb?token=${{ secrets.IPINFO_APIKEY }} -o backend/country_asn.mmdb fi + # Set up QEMU for multi-arch builds + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + # Set up BuildKit Docker container builder to be able to build # multi-platform images and export cache # https://github.com/docker/setup-buildx-action diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 2305ba4..5fb04bc 100755 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -1,15 +1,15 @@ -FROM php:8-alpine +FROM php:8.3-alpine3.19 # Use the mlocati helper to install PHP extensions in a platform-agnostic way. ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ # Install runtime packages and let the helper install/compile PHP extensions -RUN apk add --quiet --no-cache \ +RUN apk add --no-cache \ bash \ apache2 \ wget \ curl \ - && apk add --quiet --no-cache --virtual .build-deps \ + && apk add --no-cache --virtual .build-deps \ build-base \ autoconf \ libpng-dev \