blob: 7758df27f14e201a75ed9a675ad07723a7b4bcde [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001FROM ejabberd/ecs:21.01
2
3LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
4
5ENV GOSU_VERSION 1.11
6
7# We need to copy cert files, dropping rights at a later point
8USER root
9
10RUN apk add --update --no-cache su-exec \
11 bash \
12 tini \
13 jq \
14 mariadb-client \
15 redis \
16 tzdata \
17 curl \
18 openssl \
19 bind-tools \
20 composer \
21 php7-pdo \
22 php7-pdo_mysql \
23 php7-ctype
24
25RUN mkdir -p /var/www/authentication && \
26 cd /var/www/authentication && \
27 composer require leesherwood/ejabberd-php-auth monolog/monolog
28
29COPY docker-entrypoint.sh /docker-entrypoint.sh
30COPY authenticator /var/www/authentication/authenticator
31COPY mailcowCommandExecutor.php /var/www/authentication/vendor/leesherwood/ejabberd-php-auth/src/CommandExecutors/mailcowCommandExecutor.php
32
33ENTRYPOINT ["/docker-entrypoint.sh"]