FROM docker.io/alpine:3.20@sha256:77726ef6b57ddf65bb551896826ec38bc3e53f75cdde31354fbffb4f25238ebd LABEL maintainer="Robert Kaussow " LABEL org.opencontainers.image.authors="Robert Kaussow " LABEL org.opencontainers.image.title="openldap" LABEL org.opencontainers.image.url="https://gitea.rknet.org/container/openldap" LABEL org.opencontainers.image.source="https://gitea.rknet.org/container/openldap" LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/container/openldap" ARG TARGETOS ARG TARGETARCH ARG TARGETVARIANT ARG CONTAINER_LIBRARY # renovate: datasource=repology depName=alpine_3_20/openldap versioning=loose ENV OPENLDAP_VERSION=2.6.7-r0 ADD overlay/ / RUN addgroup -g 1001 -S ldap && \ adduser -S -D -H -u 1001 -h /var/www -s /usr/lib/openldap -G ldap -g ldap ldap && \ apk --update add --virtual .build-deps curl && \ apk --update --no-cache add openldap=${OPENLDAP_VERSION} openldap-back-mdb=${OPENLDAP_VERSION} \ openldap-clients=${OPENLDAP_VERSION} && \ apk del .build-deps && \ rm -rf /var/cache/apk/* && \ rm -rf /tmp/* EXPOSE 389 636 USER 1001 STOPSIGNAL SIGTERM WORKDIR /var/lib/openldap CMD ["/usr/sbin/slapd", "-d", "stats", "-u", "ldap", "-g", "ldap", "-f", "/etc/openldap/slapd.conf", "-h", "ldaps://"]