Ver código fonte

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

Stefan Stidl 2 semanas atrás
pai
commit
6ab62409cb
2 arquivos alterados com 7 adições e 3 exclusões
  1. 4 0
      .github/workflows/docker-publish.yml
  2. 3 3
      Dockerfile.alpine

+ 4 - 0
.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

+ 3 - 3
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 \