Update to easyrsa 3.0
virtual size 60mb smaller, git replaced by curl
This commit is contained in:
parent
74c4ca94a7
commit
32029c98c8
12
Dockerfile
12
Dockerfile
@ -6,12 +6,14 @@ FROM debian:jessie
|
|||||||
MAINTAINER Kyle Manna <kyle@kylemanna.com>
|
MAINTAINER Kyle Manna <kyle@kylemanna.com>
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y openvpn iptables git-core && \
|
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/*
|
||||||
|
|
||||||
# Update checkout to use tags when v3.0 is finally released
|
RUN curl -L https://github.com/OpenVPN/easy-rsa/archive/v3.0.0.tar.gz | tar xzf - && \
|
||||||
RUN git clone --depth 1 --branch v3.0.0-rc2 https://github.com/OpenVPN/easy-rsa.git /usr/local/share/easy-rsa && \
|
mkdir -p /usr/local/share/easy-rsa && \
|
||||||
ln -s /usr/local/share/easy-rsa/easyrsa3/easyrsa /usr/local/bin
|
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
|
||||||
|
|
||||||
# Needed by scripts
|
# Needed by scripts
|
||||||
ENV OPENVPN /etc/openvpn
|
ENV OPENVPN /etc/openvpn
|
||||||
@ -28,4 +30,4 @@ WORKDIR /etc/openvpn
|
|||||||
CMD ["ovpn_run"]
|
CMD ["ovpn_run"]
|
||||||
|
|
||||||
ADD ./bin /usr/local/bin
|
ADD ./bin /usr/local/bin
|
||||||
RUN chmod a+x /usr/local/bin/*
|
RUN chmod +x /usr/local/bin/ovpn_* /usr/local/bin/easyrsa_*
|
||||||
|
Loading…
Reference in New Issue
Block a user