openldap/Dockerfile

22 lines
367 B
Text
Raw Normal View History

FROM alpine
2015-02-18 15:23:34 +00:00
MAINTAINER Daniel Guerra
2015-02-18 15:23:34 +00:00
ENV OPENLDAP_VERSION 2.4.44-r0
2015-02-18 15:23:34 +00:00
RUN apk update \
&& apk add openldap \
&& rm -rf /var/cache/apk/*
2015-02-18 15:23:34 +00:00
EXPOSE 389
VOLUME ["/etc/openldap-dist", "/var/lib/openldap"]
2015-02-18 15:23:34 +00:00
COPY modules/ /etc/openldap/modules
2015-02-18 15:23:34 +00:00
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["slapd", "-d", "32768", "-u", "ldap", "-g", "ldap"]