FROM debian:stretch RUN apt-get update && \ apt-get dist-upgrade -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y mariadb-server mariadb-client libnss-ldapd COPY 60-ldap.cnf /etc/mysql/mariadb.conf.d/60-ldap.cnf COPY 60-remote.cnf /etc/mysql/mariadb.conf.d/60-remote.cnf COPY 60-disable-dialog.cnf /etc/mysql/mariadb.conf.d/60-disable-dialog.cnf COPY pam-mariadb /etc/pam.d/mariadb COPY nsswitch.conf /etc/nsswitch.conf COPY entrypoint.sh /usr/local/bin/entrypoint ENTRYPOINT ["/usr/local/bin/entrypoint"]