OpenLDAP-FusionDirectory-Do.../Dockerfile
2022-01-20 09:54:02 +01:00

19 lines
496 B
Docker

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"]