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.
This commit is contained in:
Kyle Manna 2014-12-05 14:07:00 -08:00
parent 19f4c5cde4
commit 473671a4d0

View File

@ -10,9 +10,8 @@ RUN apt-get update && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* 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 --depth 1 --branch v3.0.0-rc2 https://github.com/OpenVPN/easy-rsa.git /usr/local/share/easy-rsa && \
RUN cd /usr/local/share/easy-rsa && git checkout -b tested 89f369c5bbd13fbf0da2ea6361632c244e8af532 ln -s /usr/local/share/easy-rsa/easyrsa3/easyrsa /usr/local/bin
RUN ln -s /usr/local/share/easy-rsa/easyrsa3/easyrsa /usr/local/bin
# Needed by scripts # Needed by scripts
ENV OPENVPN /etc/openvpn ENV OPENVPN /etc/openvpn