From d96378a391d9529714d4c135b7b000d5ed362843 Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Mon, 7 Sep 2015 19:21:07 -0700 Subject: [PATCH] Dockerfile: Streamline tarball extraction * No point in writing it to the disk and then deleting it * Extract it in place --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 88b9173..7bda5eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,11 +9,9 @@ RUN apt-get update && \ apt-get install -y openvpn iptables curl && \ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* -RUN curl -L https://github.com/OpenVPN/easy-rsa/archive/v3.0.0.tar.gz | tar xzf - && \ - mkdir -p /usr/local/share/easy-rsa && \ - mv easy-rsa-3.0.0/easyrsa3 /usr/local/share/easy-rsa/easyrsa3 && \ - ln -s /usr/local/share/easy-rsa/easyrsa3/easyrsa /usr/local/bin && \ - rm -fr /easy-rsa-3.0.0 +RUN mkdir -p /usr/local/share/easy-rsa && \ + curl -L https://github.com/OpenVPN/easy-rsa/archive/v3.0.0.tar.gz | tar xzf - --strip=1 -C /usr/local/share/easy-rsa easy-rsa-3.0.0/easyrsa3 && \ + ln -s /usr/local/share/easy-rsa/easyrsa3/easyrsa /usr/local/bin # Needed by scripts ENV OPENVPN /etc/openvpn