Update dockerfile

This commit is contained in:
Marisa 2025-11-04 14:49:32 -05:00
parent 726a1f8003
commit 9252542c0e

View File

@ -4,7 +4,8 @@ FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
# install slapd and ldap-utils # install slapd and ldap-utils
RUN apt-get update && apt-get install -y slapd ldap-utils vim mc && apt-get clean RUN apt-get update && apt-get install -y --no-install-recommends \
slapd ldap-utils gnutls-bin ssl-cert ca-certificates schema2ldif vim mc && apt-get clean
# preconfigure slapd installation without using systemd # preconfigure slapd installation without using systemd
RUN echo "slapd slapd/password1 password admin" | debconf-set-selections && \ RUN echo "slapd slapd/password1 password admin" | debconf-set-selections && \
@ -22,7 +23,7 @@ COPY ./start-slapd.sh ./start-slapd.sh
RUN chmod +x ./start-slapd.sh RUN chmod +x ./start-slapd.sh
# open up LDAP simple port # open up LDAP simple port
EXPOSE 389 EXPOSE 636
# set salvable volumes for LDAP data, configuration # set salvable volumes for LDAP data, configuration
#VOLUME ["/var/lib/ldap", "/etc/ldap/slapd.d"] #VOLUME ["/var/lib/ldap", "/etc/ldap/slapd.d"]