|
|
@@ -6,14 +6,15 @@ MAINTAINER Bertrand Gouny <[email protected]>
|
|
|
# Add openldap user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
|
|
|
RUN groupadd -r openldap && useradd -r -g openldap openldap
|
|
|
|
|
|
-# Install OpenLDAP, ldap-utils and cfssl from baseimage and remove default ldap db
|
|
|
+# Install OpenLDAP, ldap-utils and cfssl from baseimage
|
|
|
# sources: https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/add-service-available
|
|
|
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/service-available/.cfssl/download.sh
|
|
|
RUN apt-get -y update \
|
|
|
&& /container/tool/add-service-available .cfssl \
|
|
|
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes --no-install-recommends \
|
|
|
- slapd ldap-utils openssl \
|
|
|
- && rm -rf /var/lib/ldap /etc/ldap/slapd.d
|
|
|
+ ldap-utils \
|
|
|
+ openssl \
|
|
|
+ slapd
|
|
|
|
|
|
# Add service directory to /container/service
|
|
|
ADD service /container/service
|