Dockerfile 811 B

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