Dockerfile 777 B

123456789101112131415161718192021222324252627282930
  1. FROM alpine:latest
  2. # The setup follows the OpenLDAP admin guide on
  3. # http://www.openldap.org/doc/admin24/guide.html
  4. # Define env variables
  5. ENV DOMAIN example
  6. ENV LDAPROOT dc=example,dc=org
  7. ENV ORGANIZATION Example Org.
  8. ENV DEBUG 1
  9. ENV USER ldap
  10. ENV GROUP ldap
  11. # Install OpenLDAP with MDB backend
  12. # openldap-clients is not really required, can be removed after evaluation.
  13. RUN apk add --no-cache \
  14. gettext \
  15. openldap \
  16. openldap-clients \
  17. openldap-back-mdb
  18. RUN mkdir /run/openldap && \
  19. chown ${USER}:${GROUP} /run/openldap
  20. # Tell the ldap client about the self-signed TLS CA certificate
  21. RUN echo "TLS_CACERT /etc/ssl/certs/CAself-cert.pem" >> /etc/openldap/ldap.conf
  22. COPY ./entrypoint.sh /entrypoint.sh
  23. CMD /entrypoint.sh