From 144765d9bcebd85eec3ad2e3399e3a04cd033f4c Mon Sep 17 00:00:00 2001 From: John Keyes Date: Fri, 2 Feb 2024 08:32:20 +0000 Subject: [PATCH] fix: updating PHP version in Dockerfile As Roadmap now depends on PHP >= 8.2 the PHP image used in the Dockerfile needs to be updated. As part of this change the linux-headers package also needs to be installed to build PHP extensions. --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index ab38c6e9..93a6ccbc 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,9 +1,9 @@ -FROM php:8.1.5-fpm-alpine3.15 +FROM php:8.2-fpm-alpine3.18 WORKDIR /var/www/html #install GD -RUN apk add --no-cache freetype libpng libjpeg-turbo \ +RUN apk add --no-cache linux-headers freetype libpng libjpeg-turbo \ && apk add --virtual build-deps freetype-dev libpng-dev libjpeg-turbo-dev \ && docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \ && nproc=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) \