fix: cleanup dockerfile and always install latest package version
This commit is contained in:
parent
fb98cc0f47
commit
2734497185
@ -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 && \
|
||||
|
Loading…
Reference in New Issue
Block a user