FROM debian:stable-slim ARG LDAP_ADMIN_PASSWORD ARG LDAP_DOMAIN ARG LDAP_ORGANISATION ENV LDAP_ADMIN_PASSWORD $LDAP_ADMIN_PASSWORD ENV LDAP_ORGANISATION $LDAP_ORGANISATION ENV LDAP_DOMAIN $LDAP_DOMAIN RUN apt-get update -y && apt dist-upgrade -y RUN DEBIAN_FRONTEND=noninteractive apt-get install -y slapd ldap-utils EXPOSE 389 ADD slapd.sh /opt/slapd RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* CMD /opt/slapd