-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
63 lines (52 loc) · 1.37 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
FROM debian
MAINTAINER @palle version: 1
RUN apt-get update
RUN apt-get -y install \
apt-utils \
apache2 \
php5 \
php5-gd \
php5-mysql \
perl \
libxml-simple-perl \
libdbi-perl \
libapache-dbi-perl \
libdbd-mysql-perl \
libio-compress-perl \
libxml-simple-perl \
libsoap-lite-perl \
libarchive-zip-perl \
libnet-ip-perl \
libphp-pclzip \
libsoap-lite-perl \
libarchive-zip-perl \
htop \
git \
wget \
tar \
unzip \
nano \
make
RUN cpan -i XML::Entities
#Set time zone Europe/Paris
RUN cp /usr/share/zoneinfo/Europe/Paris /etc/localtime
#Set permission
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV POOLING enable
env APACHE_PID_FILE /var/run/apache2.pid
env APACHE_RUN_DIR /var/run/apache2
env APACHE_LOCK_DIR /var/lock/apache2
env APACHE_LOG_DIR /var/log/apache2
RUN /usr/sbin/a2dissite 000-default
RUN /usr/sbin/a2enmod rewrite
RUN /usr/sbin/a2ensite default-ssl
RUN /usr/sbin/a2enmod ssl
RUN echo "/usr/sbin/apache2ctl -D FOREGROUND" >> /root/run.sh && \
chmod +x /root/run.sh
CMD ["/bin/bash", "/root/run.sh"]
RUN git clone https://github.com/OCSInventory-NG/OCSInventory-Server.git /tmp/ocs
RUN git clone https://github.com/OCSInventory-NG/OCSInventory-ocsreports.git /tmp/ocs/ocsreports
EXPOSE 443
EXPOSE 80