FROM mariadb:10.4.22 LABEL Maintainer="Wolfgang Hottgenroth " ENV LDAPBASE "DC=hottis,DC=de" ENV LDAPURI "ldap://ldap.hottis.de:389" ENV LDAPBINDDB "" ENV LDAPBINDPW "" RUN \ apt update && \ env DEBIAN_FRONTEND=noninteractive apt -yq install libpam-ldap && \ env DEBIAN_FRONTEND=noninteractive apt -yq install pamtester COPY docker-entrypoint.sh-head /usr/local/bin COPY pam.conf-tail /etc COPY ldap.conf-tmpl /etc COPY load_pam_plugin.cnf /etc/mysql/conf.d RUN \ cd /usr/local/bin && \ tail -n +2 docker-entrypoint.sh > docker-entrypoint.sh-tail && \ cat docker-entrypoint.sh-head docker-entrypoint.sh-tail > docker-entrypoint.sh && \ cd /etc && \ cat pam.conf-tail >> pam.conf && \ chmod 644 /etc/mysql/conf.d/load_pam_plugin.cnf