Skip to content

Commit afcfc15

Browse files
committed
Clean apt cache after installing ldap-utils
1 parent e0b980e commit afcfc15

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docker/docker-compose-rest.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,9 @@ services:
101101
# /dspace/bin/dspace database migrate force
102102
# /dspace/bin/start-handle-server
103103
- |
104-
apt update
105-
apt install -y ldap-utils
104+
apt update && apt install -y ldap-utils && apt clean && rm -rf /var/lib/apt/lists/*
106105
mkdir -p /etc/ldap
107-
echo "TLS_CACERT /etc/ssl/certs/ca-certificates.crt" >> /etc/ldap/ldap.conf
106+
grep -qxF "TLS_CACERT /etc/ssl/certs/ca-certificates.crt" /etc/ldap/ldap.conf || echo "TLS_CACERT /etc/ssl/certs/ca-certificates.crt" >> /etc/ldap/ldap.conf
108107
export LDAPTLS_CACERT=/etc/ssl/certs/ca-certificates.crt
109108
./custom_run.sh
110109
# DSpace Solr container

0 commit comments

Comments
 (0)