FROM debian:stretch-slim

MAINTAINER Trygve Laugstøl <trygvis@inamo.no>

VOLUME /local

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
	apt-get install -y --no-install-recommends \
		apache2 \
		aptitude \
		apt-utils \
		git \
		git \
		libapache2-mod-php \
		php-ldap \
		php-mbstring \
		php-xml

COPY self-service-password /srv/self-service-password
COPY conf/000-default.conf /etc/apache2/sites-available/000-default.conf
COPY conf/config.inc.php /srv/self-service-password/conf/config.inc.php
CMD []
ENTRYPOINT ["apachectl", "-DFOREGROUND"]