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