Dockerfile: Streamline tarball extraction
* No point in writing it to the disk and then deleting it * Extract it in place
This commit is contained in:
parent
32029c98c8
commit
d96378a391
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user