feat(php8): Umstieg auf Debian Trixie mit PHP 8.4 (WIP)
PHP 7.4 ist seit 2022 EOL und bekommt keine Fixes mehr (u. a. PHP2Shell,
CVE-2026-109618/109619). Ich stelle das Image deshalb auf debian:trixie-slim
mit PHP 8.4.27 um.
- Php8Compat.php: ergaenzt __construct() fuer PHP-4-Konstruktoren und stellt
String-Offsets $str{0} auf $str[0] um (AdminServ, RemoteCP, XAseco)
- RunTrackmaniaServer.sh: Patcher bei jedem Start auf die Volumes anwenden,
mysqli_report(MYSQLI_REPORT_OFF) fuer den mysql_*-Shim von XAseco
- Bullseye-Archive-Repositories entfernt
This commit is contained in:
1 parent
5ca2f1587f
commit
b13b524ad5
3 files changed
+220
-6
No files matched your search
+6
-6
@@ -1,15 +1,11 @@
|
||||
FROM debian:bullseye-slim
|
||||
# Debian 13 Trixie liefert PHP 8.4 mit regulaeren Security-Updates
|
||||
FROM debian:trixie-slim
|
||||
|
||||
RUN mkdir /opt/tmserver
|
||||
|
||||
WORKDIR /opt/tmserver
|
||||
|
||||
# Alle benoetigten Pakete in einem Layer installieren und Cache aufraeumen
|
||||
# Debian Bullseye Archive-Repositories konfigurieren (Bullseye ist archiviert)
|
||||
RUN echo "deb http://archive.debian.org/debian bullseye main" > /etc/apt/sources.list \
|
||||
&& echo "deb http://archive.debian.org/debian-security bullseye-security main" >> /etc/apt/sources.list \
|
||||
&& echo "Acquire::Check-Valid-Until false;" > /etc/apt/apt.conf.d/99no-check-valid-until
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
unzip \
|
||||
apache2 \
|
||||
@@ -53,6 +49,10 @@ COPY assets/bin/RunTrackmaniaServer.sh /opt/tmserver/
|
||||
RUN sed -i 's/\r$//' /opt/tmserver/RunTrackmaniaServer.sh \
|
||||
&& chmod +x /opt/tmserver/RunTrackmaniaServer.sh
|
||||
|
||||
# PHP-8-Kompatibilitaet: ergaenzt __construct() fuer PHP-4-Konstruktoren
|
||||
# (wird bei jedem Start auf die Volumes angewendet)
|
||||
COPY assets/bin/Php8Compat.php /opt/tmserver/
|
||||
|
||||
COPY assets/bin/XAsecoHealthcheck.sh /opt/tmserver/
|
||||
RUN sed -i 's/\r$//' /opt/tmserver/XAsecoHealthcheck.sh \
|
||||
&& chmod +x /opt/tmserver/XAsecoHealthcheck.sh
|
||||
|
||||
Reference in new issue
Block a user