-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
29 lines (20 loc) · 914 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
FROM debian:bullseye-slim
RUN apt update && apt-get -y install curl gettext-base\
&& apt-get update\
&& apt-get install -y --install-recommends apache2 libapache2-mod-shib shibboleth-sp-common shibboleth-sp-utils\
&& apt-get -y install php php-mysql php-curl php-mbstring php-gmp composer zip unzip php-zip
COPY config/attribute-map.xml /etc/shibboleth/
RUN mkdir /usr/local/jitsi-SAML2JWT
COPY ./src /usr/local/jitsi-SAML2JWT/src
COPY ./lib /usr/local/jitsi-SAML2JWT/lib
COPY ./config /usr/local/jitsi-SAML2JWT/config
RUN cd /usr/local/jitsi-SAML2JWT/lib\
&& composer install -n \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 80 443 8443
# redirect apache logs to docker stdout/stderr
RUN ln -sf /proc/1/fd/1 /var/log/apache2/access.log
RUN ln -sf /proc/1/fd/2 /var/log/apache2/error.log
COPY entrypoint.sh /var/
RUN chmod +x /var/entrypoint.sh
ENTRYPOINT ["/bin/bash", "/var/entrypoint.sh"]