Dockerfile: Clean-up after apt operations

* Delete old files to keep the image lean.
This commit is contained in:
Kyle Manna 2014-12-05 13:55:53 -08:00
parent 17ef8cebfc
commit 19f4c5cde4

View File

@ -5,7 +5,9 @@ FROM debian:jessie
MAINTAINER Kyle Manna <kyle@kylemanna.com> MAINTAINER Kyle Manna <kyle@kylemanna.com>
RUN apt-get update && apt-get install -y openvpn iptables git-core RUN apt-get update && \
apt-get install -y openvpn iptables git-core && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Update checkout to use tags when v3.0 is finally released # Update checkout to use tags when v3.0 is finally released
RUN git clone https://github.com/OpenVPN/easy-rsa.git /usr/local/share/easy-rsa RUN git clone https://github.com/OpenVPN/easy-rsa.git /usr/local/share/easy-rsa