fix: cleanup dockerfile and always install latest package version
All checks were successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/build-container Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-10-26 21:29:50 +02:00
parent fb98cc0f47
commit 2734497185
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -11,20 +11,18 @@ 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 && \
adduser -S -D -H -u 1001 -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} && \
apk --update --no-cache add openldap \
openldap-back-ldap \
openldap-back-mdb \
openldap-overlay-rwm \
openldap-overlay-memberof \
openldap-clients && \
mkdir -p /openldap/conf /openldap/data && \
cp /etc/openldap/slapd.conf /openldap/conf/slapd.conf && \
chown -R ldap:ldap /openldap && \