forked from grams/docker-LTB-self-service-password
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
24 lines (17 loc) · 961 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM phusion/baseimage:0.9.16
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
ENV DEBIAN_FRONTEND noninteractive
# Install Apache2, PHP and LTB ssp
RUN apt-get update && apt-get install -y apache2 php5 php5-mcrypt php5-ldap && apt-get clean
RUN curl http://tools.ltb-project.org/attachments/download/801/self-service-password_0.9-1_all.deb > self-service-password.deb && dpkg -i self-service-password.deb ; rm -f self-service-password.deb
# Configure self-service-password site
RUN ln -s self-service-password /etc/apache2/sites-available/self-service-password.conf
RUN ln -s ../../mods-available/mcrypt.ini /etc/php5/apache2/conf.d/20-mcrypt.ini
RUN a2dissite 000-default && a2ensite self-service-password
# This is where configuration goes
ADD assets/config.inc.php /usr/share/self-service-password/conf/config.inc.php
# Start Apache2 as runit service
RUN mkdir /etc/service/apache2
ADD assets/apache2.sh /etc/service/apache2/run
EXPOSE 80