From 19af8f02b468acba331e3989ed12e8d6b72bad4d Mon Sep 17 00:00:00 2001 From: Osma Suominen Date: Tue, 17 Sep 2024 09:53:30 +0300 Subject: [PATCH] upgrade to Ubuntu 22.04 base image and PHP 8.1 for Skosmos 2 docker image --- dockerfiles/Dockerfile.ubuntu | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/dockerfiles/Dockerfile.ubuntu b/dockerfiles/Dockerfile.ubuntu index e55e09120..7be1b2c69 100644 --- a/dockerfiles/Dockerfile.ubuntu +++ b/dockerfiles/Dockerfile.ubuntu @@ -1,4 +1,4 @@ -FROM ubuntu:20.04 +FROM ubuntu:22.04 LABEL maintainer="National Library of Finland" LABEL version="0.1" @@ -13,13 +13,13 @@ RUN apt-get update && apt-get install -y \ curl \ gettext \ git \ - libapache2-mod-php7.4 \ + libapache2-mod-php8.1 \ locales \ - php7.4 \ - php7.4-curl \ - php7.4-xsl \ - php7.4-intl \ - php7.4-mbstring \ + php8.1 \ + php8.1-curl \ + php8.1-xsl \ + php8.1-intl \ + php8.1-mbstring \ php-apcu \ php-zip \ unzip \ @@ -53,7 +53,7 @@ ENV LC_ALL=en_US.UTF-8 ENV LANG=en_US.UTF-8 # timezone -RUN sed -i 's/;date.timezone =/date.timezone = "UTC"/g' /etc/php/7.4/apache2/php.ini +RUN sed -i 's/;date.timezone =/date.timezone = "UTC"/g' /etc/php/8.1/apache2/php.ini COPY dockerfiles/config/000-default.conf /etc/apache2/sites-available/000-default.conf