Robert Kaussow
38cf952378
All checks were successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/tag/build-package Pipeline was successful
ci/woodpecker/push/build-container Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/tag/build-container Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
ci/woodpecker/tag/docs Pipeline was successful
ci/woodpecker/tag/notify Pipeline was successful
45 lines
1.6 KiB
Plaintext
45 lines
1.6 KiB
Plaintext
FROM docker.io/alpine:3.20@sha256:b89d9c93e9ed3597455c90a0b88a8bbb5cb7188438f70953fede212a0c4394e0
|
|
|
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
|
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
|
|
|
|
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-ldap=${OPENLDAP_VERSION} \
|
|
openldap-back-mdb=${OPENLDAP_VERSION} \
|
|
openldap-overlay-rwm=${OPENLDAP_VERSION} \
|
|
openldap-overlay-memberof=${OPENLDAP_VERSION} \
|
|
openldap-clients=${OPENLDAP_VERSION} && \
|
|
mkdir -p /openldap/conf /openldap/data && \
|
|
cp /etc/openldap/slapd.conf /openldap/conf/slapd.conf && \
|
|
chown -R ldap:ldap /openldap && \
|
|
apk del .build-deps && \
|
|
rm -rf /var/cache/apk/* && \
|
|
rm -rf /tmp/*
|
|
|
|
ADD overlay/ /
|
|
|
|
EXPOSE 389 636
|
|
|
|
USER 1001
|
|
|
|
STOPSIGNAL SIGTERM
|
|
|
|
WORKDIR /openldap
|
|
CMD ["/usr/sbin/slapd", "-d", "stats", "-u", "ldap", "-g", "ldap", "-f", "/openldap/conf/slapd.conf", "-h", "ldaps:// ldap://"]
|