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 install -y openvpn iptables curl && \
|
||||||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
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 - && \
|
RUN mkdir -p /usr/local/share/easy-rsa && \
|
||||||
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 && \
|
||||||
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
|
||||||
ln -s /usr/local/share/easy-rsa/easyrsa3/easyrsa /usr/local/bin && \
|
|
||||||
rm -fr /easy-rsa-3.0.0
|
|
||||||
|
|
||||||
# Needed by scripts
|
# Needed by scripts
|
||||||
ENV OPENVPN /etc/openvpn
|
ENV OPENVPN /etc/openvpn
|
||||||
|
Loading…
Reference in New Issue
Block a user