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