-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
45 lines (35 loc) · 1.02 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
FROM ubuntu:latest
COPY policy-rc.d /usr/sbin/policy-rc.d
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q \
apache2 \
libapache2-mod-php5 \
php5 \
php5-cli \
php5-xmlrpc \
php5-ldap \
php5-gd \
php5-mysql \
mcrypt \
php5-mcrypt \
mysql-server \
unzip \
wget \
supervisor
RUN php5enmod mcrypt
RUN mkdir /var/www/i-doit
# download i-doit 1.8 and upack it
RUN wget -O i-doit.zip http://sourceforge.net/projects/i-doit/files/i-doit/1.8/idoit-open-1.8.zip/download
RUN unzip i-doit.zip -d /var/www/i-doit
RUN rm i-doit.zip
# default rights
RUN chmod +x /var/www/i-doit/idoit-rights.sh
RUN cd /var/www/i-doit && ./idoit-rights.sh
# apache2 configuration for the virtual host on port 80
# includes the alias definition for '/i-doit'
COPY 000-default.conf /etc/apache2/sites-enabled/000-default.conf
# expose i-doit webinterface running on port 80
EXPOSE 80
# install configuration file for supervisord
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD ["/usr/bin/supervisord"]