FROM alpine MAINTAINER Benoit LORAND WORKDIR /root ENV GLPI_CONFIG_DIR=/etc/glpi ENV GLPI_VAR_DIR=/var/lib/glpi ENV GLPI_LOG_DIR=/var/log/glpi ENV GLPI_VERSION=9.5.1 ENV FUSIONINVENTORY_VERSION=9.5.0+1.0 RUN \ apk add \ runit \ php7-apache2 \ php7 \ mariadb-client \ php7-pecl-apcu \ php7-mysqli \ php7-gd \ php7-intl \ php7-ldap \ php7-xmlrpc \ php7-exif \ php7-zip \ php7-bz2 \ php7-opcache \ php7-pear \ php7-curl \ php7-dom \ php7-pdo \ php7-json \ php7-session \ php7-ctype \ php7-fileinfo \ php7-mbstring \ php7-simplexml \ php7-iconv \ php7-sodium COPY CAS-1.3.8.tgz /root/ RUN pear install /root/CAS-1.3.8.tgz COPY httpd.conf /etc/apache2 COPY service/ /etc/service/ COPY glpi_init.sh /root/glpi_init.sh COPY glpi.cron /var/spool/cron/crontabs/apache COPY initrc /etc/ ADD https://github.com/glpi-project/glpi/releases/download/${GLPI_VERSION}/glpi-${GLPI_VERSION}.tgz /root/glpi-${GLPI_VERSION}.tgz ADD https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi${FUSIONINVENTORY_VERSION}/fusioninventory-${FUSIONINVENTORY_VERSION}.tar.bz2 /root/fusioninventory-${FUSIONINVENTORY_VERSION}.tar.bz2 RUN \ chmod a+x /root/glpi_init.sh /etc/initrc && \ chmod 600 /etc/crontabs/apache && \ rm -f /var/www/html/* /root/CAS-1.3.8.tgz && \ rm -rf /tmp/* /var/tmp/* ENTRYPOINT ["/etc/initrc"]