2019-03-12 21:45:46 +00:00
|
|
|
FROM alpine:3.9
|
2018-03-14 14:59:36 +00:00
|
|
|
|
|
|
|
RUN set -ex \
|
|
|
|
&& apk --no-cache add \
|
|
|
|
bash \
|
|
|
|
curl \
|
|
|
|
openldap \
|
|
|
|
openldap-back-mdb \
|
|
|
|
openldap-clients \
|
|
|
|
openldap-overlay-memberof \
|
|
|
|
openldap-overlay-ppolicy \
|
|
|
|
openldap-overlay-refint \
|
|
|
|
&& curl -sSfLo /usr/local/bin/korvike "https://github.com/Luzifer/korvike/releases/download/v0.4.1/korvike_linux_amd64" \
|
|
|
|
&& chmod 0755 /usr/local/bin/korvike \
|
|
|
|
&& apk --no-cache del curl \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
COPY docker-entrypoint.sh /
|
|
|
|
COPY config /config
|
2015-03-11 22:35:56 +00:00
|
|
|
|
2015-02-18 15:23:34 +00:00
|
|
|
EXPOSE 389
|
|
|
|
|
2018-03-14 14:59:36 +00:00
|
|
|
VOLUME ["/etc/openldap/slapd.d", "/var/lib/openldap/openldap-data"]
|
2015-02-18 15:23:34 +00:00
|
|
|
|
2018-03-14 14:59:36 +00:00
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
2016-03-24 20:33:42 +00:00
|
|
|
CMD ["slapd", "-d", "32768", "-u", "ldap", "-g", "ldap"]
|