summaryrefslogtreecommitdiff
path: root/apache-sp/Dockerfile
blob: 51cc408b7eca88204293747b2b1fd31586a1d6c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM debian:jessie
MAINTAINER Markus Krogh <markus@nordu.net>

RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get update && apt-get -y install apache2 libapache2-mod-shib2 ssl-cert curl
RUN a2enmod shib2 headers ssl

RUN rm -f /etc/apache2/sites-available/* /etc/apache2/sites-enabled/*
ADD apache-conf/*.conf /etc/apache2/sites-available/
ADD shibd/shibboleth2.xml /etc/shibboleth/
ADD secure /var/www/secure
ADD entrypoint.sh /entrypoint.sh
RUN chmod a+rx /entrypoint.sh
EXPOSE 443
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]