From faef6e1e35360f85e9879d714ab18cdf23992fd0 Mon Sep 17 00:00:00 2001 From: Jan Giesenberg Date: Mon, 18 Nov 2024 19:31:05 +0100 Subject: [PATCH] feat!: update php to version 8 as 2.8.6 produced problems on php 7 --- build/Dockerfile | 4 ++-- docker-compose.local.yml | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 docker-compose.local.yml diff --git a/build/Dockerfile b/build/Dockerfile index 8db5bec..26d24d2 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -11,7 +11,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -FROM php:7-fpm-alpine +FROM php:8-fpm-alpine LABEL org.opencontainers.image.authors="Jan Giesenberg <749@github.com>" @@ -22,7 +22,7 @@ RUN apk add --no-cache rsync freetype-dev libpng-dev jpeg-dev unzip sudo bash ge && docker-php-ext-install -j$(nproc) gd opcache mysqli pdo pdo_mysql \ && rm -rf /usr/src/php/ -ARG MODX_VERSION 2.8.2 +ARG MODX_VERSION 2.8.7 ENV MODX_VERSION ${MODX_VERSION} # upstream tarballs include ./modx-${MODX_VERSION}/ diff --git a/docker-compose.local.yml b/docker-compose.local.yml new file mode 100644 index 0000000..21c1175 --- /dev/null +++ b/docker-compose.local.yml @@ -0,0 +1,16 @@ +# docker-modx-revolution An auto-updating dockerfile to run ModX Revolution CMS +# Copyright (C) 2021 Jan Giesenberg <749@github.com> +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +services: + modx_php: + image: "" + build: build/ \ No newline at end of file