diff --git a/Dockerfile b/Dockerfile index 96383d9..15c9ccc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,31 +1,31 @@ #On choisit une debian -FROM debian:latest +FROM debian:10.4 MAINTAINER DiouxX "github@diouxx.be" #Ne pas poser de question à l'installation ENV DEBIAN_FRONTEND noninteractive -#Installation d'apache et de php5 avec extension +#Installation d'apache et de php7.3 avec extension RUN apt update \ -&& apt -y upgrade \ -&& apt -y install \ +&& apt --yes install \ apache2 \ -php \ -php-mysql \ -php-ldap \ -php-xmlrpc \ -php-imap \ +php7.3 \ +php7.3-mysql \ +php7.3-ldap \ +php7.3-xmlrpc \ +php7.3-imap \ curl \ -php-curl \ -php-gd \ -php-mbstring \ -php-xml \ -php-apcu-bc \ +php7.3-curl \ +php7.3-gd \ +php7.3-mbstring \ +php7.3-xml \ +php7.3-apcu-bc \ php-cas \ cron \ wget \ -jq +jq \ +&& rm -rf /var/lib/apt/lists/* #Copie et execution du script pour l'installation et l'initialisation de GLPI COPY glpi-start.sh /opt/ diff --git a/glpi-start.sh b/glpi-start.sh index 2cab106..dd044cc 100644 --- a/glpi-start.sh +++ b/glpi-start.sh @@ -5,7 +5,7 @@ && VERSION_GLPI=$(curl -s https://api.github.com/repos/glpi-project/glpi/releases/latest | grep tag_name | cut -d '"' -f 4) if [[ -z "${TIMEZONE}" ]]; then echo "TIMEZONE is unset"; -else echo "date.timezone = \"$TIMEZONE\"" > /etc/php/7.0/apache2/conf.d/timezone.ini; +else echo "date.timezone = \"$TIMEZONE\"" > /etc/php/7.3/apache2/conf.d/timezone.ini; fi SRC_GLPI=$(curl -s https://api.github.com/repos/glpi-project/glpi/releases/tags/${VERSION_GLPI} | jq .assets[0].browser_download_url | tr -d \")