49 lines
1.8 KiB
Docker
49 lines
1.8 KiB
Docker
FROM php:7.4-apache-buster
|
|
MAINTAINER Benoit LORAND <benoit.lorand@blorand.org>
|
|
|
|
WORKDIR /root
|
|
|
|
RUN \
|
|
apt-get update && \
|
|
apt-get install --no-install-recommends -y \
|
|
supervisor \
|
|
cron \
|
|
libbz2-dev \
|
|
libzip-dev \
|
|
libxml2-dev \
|
|
libldap2-dev \
|
|
libicu-dev \
|
|
libpng-dev \
|
|
zlib1g-dev \
|
|
&& \
|
|
pecl install apcu && docker-php-ext-enable apcu && \
|
|
docker-php-ext-configure mysqli && docker-php-ext-install mysqli && \
|
|
docker-php-ext-configure gd && docker-php-ext-install gd && \
|
|
docker-php-ext-configure intl && docker-php-ext-install intl && \
|
|
docker-php-ext-configure ldap && docker-php-ext-install ldap && \
|
|
docker-php-ext-configure xmlrpc && docker-php-ext-install xmlrpc && \
|
|
docker-php-ext-configure exif && docker-php-ext-install exif && \
|
|
docker-php-ext-configure zip && docker-php-ext-install zip && \
|
|
docker-php-ext-configure bz2 && docker-php-ext-install bz2 && \
|
|
docker-php-ext-configure opcache && docker-php-ext-install opcache
|
|
|
|
COPY CAS-1.3.8.tgz /root/
|
|
RUN pear install /root/CAS-1.3.8.tgz
|
|
COPY supervisor/supervisord.conf /etc/supervisor/
|
|
COPY supervisor/conf.d/apache2.conf /etc/supervisor/conf.d/
|
|
COPY supervisor/conf.d/cron.conf /etc/supervisor/conf.d/
|
|
COPY supervisor/conf.d/glpi_init.conf /etc/supervisor/conf.d/
|
|
COPY glpi_init.sh /root/glpi_init.sh
|
|
COPY glpi.cron /etc/cron.d/glpi
|
|
ADD https://github.com/glpi-project/glpi/releases/download/9.5.1/glpi-9.5.1.tgz /root/glpi-9.5.1.tgz
|
|
ADD https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi9.5.0%2B1.0/fusioninventory-9.5.0+1.0.tar.bz2 /root/fusioninventory-9.5.0+1.0.tar.bz2
|
|
|
|
RUN \
|
|
chmod a+x /root/glpi_init.sh && \
|
|
rm -f /var/www/html/* /root/CAS-1.3.8.tgz && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
ENTRYPOINT ["supervisord", "--nodaemon", "--configuration", "/etc/supervisor/supervisord.conf"]
|
|
|