From 10266fe6a4d479f1089f8960161ac24ca915e91c Mon Sep 17 00:00:00 2001 From: luckylinux Date: Thu, 8 Feb 2024 19:50:46 +0100 Subject: [PATCH] Update Dockerfile for Debian 12 Bookworm --- Dockerfile | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/Dockerfile b/Dockerfile index a357a80..fa39a38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,47 +1,46 @@ -#On choisit une debian -FROM debian:11.6 +# Choose Distribution +FROM debian:12 -LABEL org.opencontainers.image.authors="github@diouxx.be" +LABEL org.opencontainers.image.authors="github@local" - -#Ne pas poser de question à l'installation +# Do not ask questions during installation ENV DEBIAN_FRONTEND noninteractive -#Installation d'apache et de php8.1 avec extension +# Installation of apache2 web server as well as PHP 8.2 including extension RUN apt update \ && apt install --yes ca-certificates apt-transport-https lsb-release wget curl \ -&& curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg \ -&& sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' \ && apt update \ && apt install --yes --no-install-recommends \ apache2 \ -php8.1 \ -php8.1-mysql \ -php8.1-ldap \ -php8.1-xmlrpc \ -php8.1-imap \ -php8.1-curl \ -php8.1-gd \ -php8.1-mbstring \ -php8.1-xml \ +php8.2 \ +php8.2-mysql \ +php8.2-ldap \ +php8.2-xmlrpc \ +php8.2-imap \ +php8.2-curl \ +php8.2-gd \ +php8.2-mbstring \ +php8.2-xml \ php-cas \ -php8.1-intl \ -php8.1-zip \ -php8.1-bz2 \ -php8.1-redis \ +php8.2-intl \ +php8.2-zip \ +php8.2-bz2 \ +php8.2-redis \ +php8.2-xmlreader \ +php8.2-xmlwriter \ cron \ jq \ -libldap-2.4-2 \ +libldap-2.5-0 \ libldap-common \ libsasl2-2 \ libsasl2-modules \ libsasl2-modules-db \ && rm -rf /var/lib/apt/lists/* -#Copie et execution du script pour l'installation et l'initialisation de GLPI +# Copy and Execute Script for Installation and Initialization of GLPI COPY glpi-start.sh /opt/ RUN chmod +x /opt/glpi-start.sh ENTRYPOINT ["/opt/glpi-start.sh"] -#Exposition des ports +# Expose Web Server Ports EXPOSE 80 443