-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (26 loc) · 1.27 KB
/
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
FROM httpd:2-bullseye
COPY build /build
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
libapache2-mod-shib \
ssl-cert && \
rm -r /var/lib/apt/lists/* && \
mkdir -p /usr/local/apache2/keys && \
mv /build/conf/httpd/httpd.conf /usr/local/apache2/conf/httpd.conf && \
mv /build/conf/auth/shibboleth2.xml /etc/shibboleth/ && \
mv /build/conf/auth/attribute-map.xml /etc/shibboleth/ && \
cd /etc/shibboleth/ && \
shib-keygen && \
mv /build/scripts /scripts
ENTRYPOINT ["/scripts/run.sh"]
LABEL ca.unb.lib.generator="apache2" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.description="authentication.unbscholar.lib.unb.ca is the outward facing proxy for shibboleth auth to unbscholar.lib.unb.ca." \
org.label-schema.name="authentication.unbscholar.lib.unb.ca" \
org.label-schema.url="https://github.com/unb-libraries/authentication.unbscholar.lib.unb.ca" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/unb-libraries/authentication.unbscholar.lib.unb.ca" \
org.label-schema.version=$VERSION \
org.opencontainers.image.authors="UNB Libraries <libsupport@unb.ca>" \
org.opencontainers.image.source="https://github.com/unb-libraries/authentication.unbscholar.lib.unb.ca"