-
Notifications
You must be signed in to change notification settings - Fork 63
/
Dockerfile
79 lines (57 loc) · 1.41 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
FROM centos:7
MAINTAINER eduardo@fametec.com.br
ENV VERSION 9.5.6
ENV GLPI_LANG pt_BR
ENV MARIADB_HOST mariadb-glpi
ENV MARIADB_PORT 3306
ENV MARIADB_DATABASE glpi
ENV MARIADB_USER glpi
ENV MARIADB_PASSWORD glpi
WORKDIR /var/www/html
RUN yum -y install epel-release yum-utils
RUN yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
RUN yum-config-manager --enable remi-php73
RUN yum -y install \
bzip2 \
httpd \
php \
php-common \
php-mcrypt \
php-cli \
php-gd \
php-mysqlnd \
php-json \
php-mbstring \
php-mysqli \
php-session \
php-gd \
php-curl \
php-domxml \
php-imap \
php-ldap \
php-openssl \
php-opcache \
php-apcu \
php-xmlrpc \
php-intl \
php-zip \
php-pear-CAS \
php-ZendFramework-Cache-Backend-Apc \
php-sodium \
php-pecl-zip \
&& yum -y clean all
ADD php.d /etc/php.d
ADD conf.d /etc/httpd/conf.d
# COPY --chown=apache:apache src/glpi /var/www/html
ADD https://github.com/glpi-project/glpi/releases/download/9.5.6/glpi-9.5.6.tgz /tmp/
#
RUN tar -zxf /tmp/glpi-9.5.6.tgz -C /tmp/ \
&& mv /tmp/glpi/* /var/www/html/ \
&& chown -R apache:apache /var/www/html \
&& rm -rf /tmp/glpi-9.5.6.tgz
VOLUME [ "/var/www/html/files", "/var/www/html/plugins" ]
ADD scripts/glpi-entrypoint.sh scripts/plugins.sh /
RUN chmod 755 /glpi-entrypoint.sh /plugins.sh \
&& rm -rf /var/www/html/install/install.php
EXPOSE 80/tcp
CMD ["/glpi-entrypoint.sh"]