-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
13 lines (12 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM httpd:2.4.59@sha256:b19cace6539a05579c55fda6be0a873c1d2c2e7392e7c08805141f79852ab07b
# "Created": "2024-04-05T21:49:16Z" , "Version":"2.4.59"
RUN apt-get update \
&& apt-get install -y --no-install-recommends wget ca-certificates libcjose0 libhiredis0.14 apache2-api-20120211 apache2-bin libldap-2.5-0 libssl3 libldap-common \
&& apt-get check \
&& wget https://github.com/OpenIDC/mod_auth_openidc/releases/download/v2.4.15.7/libapache2-mod-auth-openidc_2.4.15.7-1.bookworm_amd64.deb \
&& dpkg -i libapache2-mod-auth-openidc_2.4.15.7-1.bookworm_amd64.deb \
&& ln -s /usr/lib/apache2/modules/mod_auth_openidc.so /usr/local/apache2/modules/mod_auth_openidc.so \
#&& rm -rf /var/log/dpkg.log /var/log/alternatives.log /var/log/apt \
&& touch /usr/local/apache2/conf/extra/secret.conf \
&& touch /usr/local/apache2/conf/extra/oidc.conf
RUN echo "\n\nLoadModule auth_openidc_module modules/mod_auth_openidc.so\n\nInclude conf/extra/secret.conf\nInclude conf/extra/oidc.conf\n" >> /usr/local/apache2/conf/httpd.conf