Skip to content

Commit

Permalink
remove two layers
Browse files Browse the repository at this point in the history
  • Loading branch information
rroemhild committed Apr 7, 2018
1 parent 4bae774 commit 6da4391
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ RUN apt-get update \
ldap-utils \
openssl \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& mkdir /etc/ldap/ssl /bootstrap

ENV LDAP_DEBUG_LEVEL=256

# Create TLS certificate and bootstrap directory
RUN mkdir /etc/ldap/ssl /bootstrap

# ADD run script
COPY ./run.sh /run.sh

Expand All @@ -27,8 +25,7 @@ RUN /bin/bash /bootstrap/slapd-init.sh

VOLUME ["/etc/ldap/slapd.d", "/etc/ldap/ssl", "/var/lib/ldap", "/run/slapd"]

EXPOSE 389
EXPOSE 636
EXPOSE 389 636

CMD ["/bin/bash", "/run.sh"]
ENTRYPOINT []
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The Flask extension [flask-ldapconn][flaskldapconn] use this image for unit test

* Support for TLS (snake oil cert on build)
* Initialized with data from Futurama
* ~180MB Images size
* ~124MB images size (~40MB compressed)


## Usage
Expand Down

0 comments on commit 6da4391

Please sign in to comment.