Fix Debian and PHP version

pull/28/head
DiouxX 5 years ago
parent 388dcf69a8
commit 9a94c82205

@ -1,31 +1,31 @@
#On choisit une debian #On choisit une debian
FROM debian:latest FROM debian:10.4
MAINTAINER DiouxX "github@diouxx.be" MAINTAINER DiouxX "github@diouxx.be"
#Ne pas poser de question à l'installation #Ne pas poser de question à l'installation
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
#Installation d'apache et de php5 avec extension #Installation d'apache et de php7.3 avec extension
RUN apt update \ RUN apt update \
&& apt -y upgrade \ && apt --yes install \
&& apt -y install \
apache2 \ apache2 \
php \ php7.3 \
php-mysql \ php7.3-mysql \
php-ldap \ php7.3-ldap \
php-xmlrpc \ php7.3-xmlrpc \
php-imap \ php7.3-imap \
curl \ curl \
php-curl \ php7.3-curl \
php-gd \ php7.3-gd \
php-mbstring \ php7.3-mbstring \
php-xml \ php7.3-xml \
php-apcu-bc \ php7.3-apcu-bc \
php-cas \ php-cas \
cron \ cron \
wget \ wget \
jq jq \
&& rm -rf /var/lib/apt/lists/*
#Copie et execution du script pour l'installation et l'initialisation de GLPI #Copie et execution du script pour l'installation et l'initialisation de GLPI
COPY glpi-start.sh /opt/ COPY glpi-start.sh /opt/

@ -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) && 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"; 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 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 \") SRC_GLPI=$(curl -s https://api.github.com/repos/glpi-project/glpi/releases/tags/${VERSION_GLPI} | jq .assets[0].browser_download_url | tr -d \")

Loading…
Cancel
Save