feat: update Dockerfile to use PHP 8.3-alpine3.19 and add QEMU setup for multi-arch builds

This commit is contained in:
Stefan Stidl 2025-12-06 19:59:02 +01:00
parent f408183a90
commit 6ab62409cb
2 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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 \