phi/openldap/Dockerfile

23 lines
526 B
Docker
Raw Permalink Normal View History

2017-12-16 23:03:03 +01:00
FROM alpine:3.7
2020-08-23 21:31:23 +02:00
ENV LDAPTLS_REQCERT=never
2017-12-16 23:03:03 +01:00
RUN apk add --no-cache \
openldap \
openldap-back-mdb \
openldap-overlay-refint openldap-overlay-memberof \
openldap-clients
COPY slapd.conf /etc/openldap/slapd.conf
COPY key.pem /var/slapd/key.pem
COPY cert.pem /var/slapd/cert.pem
RUN chown -R ldap:ldap /var/slapd /etc/openldap
EXPOSE 389
ENTRYPOINT ["/usr/sbin/slapd",\
"-u","ldap","-g","ldap",\
"-f","/etc/openldap/slapd.conf",\
"-d","1",\
"-h","ldap://"]