From 473671a4d037208e28b033af555c4dfa617196ea Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Fri, 5 Dec 2014 14:07:00 -0800 Subject: [PATCH] Dockerfile: Shallow clone EasyRSA v3 * Do a shallow clone for a smaller checkout * Condense multiple run lines to a single RUN line for a flatter image. --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b1f4fa3..5428655 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,8 @@ RUN apt-get update && \ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # 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 cd /usr/local/share/easy-rsa && git checkout -b tested 89f369c5bbd13fbf0da2ea6361632c244e8af532 -RUN ln -s /usr/local/share/easy-rsa/easyrsa3/easyrsa /usr/local/bin +RUN git clone --depth 1 --branch v3.0.0-rc2 https://github.com/OpenVPN/easy-rsa.git /usr/local/share/easy-rsa && \ + ln -s /usr/local/share/easy-rsa/easyrsa3/easyrsa /usr/local/bin # Needed by scripts ENV OPENVPN /etc/openvpn