-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
44 lines (31 loc) · 870 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM debian:buster-slim
#FROM ubuntu:bionic
MAINTAINER Jan Oppolzer <[email protected]>
RUN apt-get -qq update && \
apt-get -qq -y --no-install-recommends install \
apache2 \
libapache2-mod-shib2 && \
rm -rf /var/lib/apt/lists/*
COPY files/apache-cert.pem \
files/apache-chain.pem \
/etc/ssl/certs/
COPY files/apache-key.pem \
/etc/ssl/private/
COPY files/default-ssl.conf \
/etc/apache2/sites-available/
RUN a2enmod ssl && \
a2ensite default-ssl
COPY files/metadata-template.xml \
files/sp-cert.pem \
files/sp-key.pem \
/etc/shibboleth/
COPY files/shibboleth2.xml \
files/attribute-map.xml \
/etc/shibboleth/
RUN cd /etc/shibboleth && \
chown _shibd sp-*.pem && \
chmod go= sp-key.pem
COPY files/shibd-apache2 \
/usr/local/sbin/
EXPOSE 80 443
ENTRYPOINT ["shibd-apache2"]