Update dockerfile
This commit is contained in:
parent
726a1f8003
commit
9252542c0e
@ -4,7 +4,8 @@ FROM ubuntu:22.04
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# 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
|
||||
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
|
||||
|
||||
# open up LDAP simple port
|
||||
EXPOSE 389
|
||||
EXPOSE 636
|
||||
|
||||
# set salvable volumes for LDAP data, configuration
|
||||
#VOLUME ["/var/lib/ldap", "/etc/ldap/slapd.d"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user