Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | FROM ejabberd/ecs:21.01 |
| 2 | |
| 3 | LABEL maintainer "Andre Peters <andre.peters@servercow.de>" |
| 4 | |
| 5 | ENV GOSU_VERSION 1.11 |
| 6 | |
| 7 | # We need to copy cert files, dropping rights at a later point |
| 8 | USER root |
| 9 | |
| 10 | RUN 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 | |
| 25 | RUN mkdir -p /var/www/authentication && \ |
| 26 | cd /var/www/authentication && \ |
| 27 | composer require leesherwood/ejabberd-php-auth monolog/monolog |
| 28 | |
| 29 | COPY docker-entrypoint.sh /docker-entrypoint.sh |
| 30 | COPY authenticator /var/www/authentication/authenticator |
| 31 | COPY mailcowCommandExecutor.php /var/www/authentication/vendor/leesherwood/ejabberd-php-auth/src/CommandExecutors/mailcowCommandExecutor.php |
| 32 | |
| 33 | ENTRYPOINT ["/docker-entrypoint.sh"] |