Skip to content

Commit 45e3e63

Browse files
committed
follow best pratices
1 parent a5b638e commit 45e3e63

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

image/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@ MAINTAINER Bertrand Gouny <[email protected]>
66
# Add openldap user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
77
RUN groupadd -r openldap && useradd -r -g openldap openldap
88

9-
# Install OpenLDAP, ldap-utils and cfssl from baseimage
9+
# Install OpenLDAP, ldap-utils and cfssl from baseimage and clean apt-get files
1010
# sources: https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/add-service-available
1111
#  https://github.com/osixia/docker-light-baseimage/blob/stable/image/service-available/:cfssl/download.sh
1212
RUN apt-get -y update \
1313
&& /container/tool/add-service-available :cfssl \
1414
&& LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes --no-install-recommends \
1515
ldap-utils \
1616
openssl \
17-
slapd
17+
slapd \
18+
&& apt-get clean \
19+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
1820

1921
# Add service directory to /container/service
2022
ADD service /container/service
2123

2224
# Use baseimage install-service script and clean all
2325
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/tool/install-service
24-
RUN /container/tool/install-service \
25-
&& apt-get clean \
26-
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
26+
RUN /container/tool/install-service
2727

2828
# Add default env variables
2929
ADD environment /container/environment/99-default

0 commit comments

Comments
 (0)