From 151ea1eab22f4370bf13d9f8b146604492d0e6fd Mon Sep 17 00:00:00 2001 From: Matteo Valentini Date: Mon, 14 Sep 2026 16:32:46 +0200 Subject: [PATCH] build: upgrade PHP image to 8.4 on Trixie Replace the PHP 8.0 Apache image with PHP 8.4 on Debian Trixie so builds use maintained runtime and package repositories. Keep the PHP minor version and Debian release explicit in the base image tag. Remove the Bullseye archive and frozen security snapshot workaround. Verify the current application on both PHP versions, including JWT authentication, legacy fallback, contacts, and quick dials. Assisted-by: Codex:GPT-6-Astra --- Dockerfile | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2ef1a56..94f0a08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,8 @@ # Use PHP with Apache as base image -FROM php:8.0-apache +FROM php:8.4-apache-trixie # Install system dependencies -# Bullseye LTS ended on 2026-08-31; no further official security updates are planned. -# Third-party Extended LTS may support selected packages separately: -# https://www.debian.org/News/2026/20260831 -# Restore reliable build downloads using archive.debian.org for bullseye and -# bullseye-updates, plus the fixed 2026-09-01 snapshot for bullseye-security. -# The snapshot avoids live-mirror package 404s and retains final LTS versions. -# It does not extend Debian 11 security support. Any later fix requires changing -# these sources; rebuilding cannot fetch updates beyond the fixed snapshot. -# check-valid-until=no skips only snapshot metadata expiry; signature and checksum -# verification remain enabled. See https://snapshot.debian.org/ -RUN sed -i \ - -e 's|deb\.debian\.org/debian |archive.debian.org/debian |g' \ - -e 's|http://deb\.debian\.org/debian-security |[check-valid-until=no] http://snapshot.debian.org/archive/debian-security/20260901T000000Z/ |g' \ - /etc/apt/sources.list && \ - apt-get update && apt-get install -y \ +RUN apt-get update && apt-get install -y \ libcurl4-openssl-dev \ curl \ && rm -rf /var/lib/apt/lists/*