forked from nilsteampassnet/TeamPass
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 728 Bytes
/
Dockerfile
File metadata and controls
22 lines (17 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:14.04
MAINTAINER arthur@caranta.com
RUN apt-get update && apt-get install -y git apache2 php5 libapache2-mod-php5 php5-mcrypt php5-mysqlnd php5-ldap php5-gd
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ADD . /teampassinit
RUN php5enmod mcrypt
RUN php5enmod mysql
RUN php5enmod ldap
RUN perl -p -i -e "s/max_execution_time = 30/max_execution_time = 120/g" /etc/php5/apache2/php.ini
RUN perl -p -i -e "s#Directory /var/www#Directory /teampass#g" /etc/apache2/apache2.conf
RUN mv /teampassinit/apache-default.conf /etc/apache2/sites-available/000-default.conf
RUN mv /teampassinit/start.sh /start.sh && chmod a+x /start.sh
EXPOSE 80
VOLUME /teampass
CMD /start.sh