-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (19 loc) · 963 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
FROM php:8.3-apache
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y jq ldap-utils libapache2-mod-authnz-external libapache2-mod-auth-openidc git unzip \
&& apt-get clean \
&& (apt-get distclean || rm -rf /var/cache/apt/archives /var/lib/apt/lists/*) \
&& a2enmod authnz_ldap \
&& mkdir -p /var/cache/apache2/mod_auth_openidc/oidc-sessions /var/cache/apache2/twig /var/www/lib \
&& chown www-data:www-data /var/cache/apache2/mod_auth_openidc/oidc-sessions /var/cache/apache2/twig \
&& docker-php-ext-install pdo_mysql \
&& php -r "copy('https://getcomposer.org/download/latest-stable/composer.phar', '/usr/local/bin/composer');" \
&& chmod +x /usr/local/bin/composer
COPY auth_openidc.conf /etc/apache2/mods-enabled/auth_openidc.conf
COPY composer.lock composer.json /var/www/
RUN cd /var/www && composer install
COPY src /var/www/src
COPY html /var/www/html
COPY templates /var/www/templates
COPY bin/update-ldap /usr/local/bin/