Skip to content

Commit

Permalink
upgrade Docker base image to Ubuntu 24.04 with PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Oct 1, 2024
1 parent a555e40 commit 69bdb6b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions dockerfiles/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY package.json ./
RUN npm install --omit=dev --ignore-scripts

# Stage 1: runtime image
FROM ubuntu:22.04
FROM ubuntu:24.04

LABEL maintainer="National Library of Finland"
LABEL version="0.1"
Expand All @@ -20,13 +20,13 @@ RUN apt-get update && apt-get install -y \
apache2 \
curl \
git \
libapache2-mod-php8.1 \
libapache2-mod-php8.3 \
locales \
php8.1 \
php8.1-curl \
php8.1-xsl \
php8.1-intl \
php8.1-mbstring \
php8.3 \
php8.3-curl \
php8.3-xsl \
php8.3-intl \
php8.3-mbstring \
php-apcu \
php-zip \
unzip \
Expand Down Expand Up @@ -60,7 +60,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/8.1/apache2/php.ini
RUN sed -i 's/;date.timezone =/date.timezone = "UTC"/g' /etc/php/8.3/apache2/php.ini

COPY dockerfiles/config/000-default.conf /etc/apache2/sites-available/000-default.conf

Expand Down

0 comments on commit 69bdb6b

Please sign in to comment.