20 lines
496 B
Text
20 lines
496 B
Text
|
FROM debian:bullseye-slim
|
||
|
|
||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||
|
RUN apt-get update && apt-get install --no-install-recommends -y slapd fusiondirectory-schema fusiondirectory-plugin-mail-schema ldap-utils
|
||
|
ENV DEBIAN_FRONTEND=readline
|
||
|
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"
|
||
|
|
||
|
COPY ./start.sh /root/start.sh
|
||
|
RUN chmod +x /root/start.sh
|
||
|
|
||
|
ENTRYPOINT ["/root/start.sh"]
|