FROM debian:bullseye-slim ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install --no-install-recommends -y slapd fusiondirectory-schema fusiondirectory-plugin-*-schema ldap-utils RUN rm -rf /etc/ldap/slapd.d/* /var/lib/ldap/* EXPOSE 389 636 ENV URL="ldap:/// ldapi:///" ENV CONF_DIR="/etc/ldap/slapd.d" ENV DB_DIR="/var/lib/ldap" ENV DEBUG_LEVEL="0" ENV LDPA_ADMINPWD= ENV LDAP_DOMAIN= ENV LDAP_ORGANIZATION= COPY ./start.sh /root/start.sh RUN chmod +x /root/start.sh ENTRYPOINT ["/root/start.sh"]