From f6873cf5bd00fe2f8b1b750cb8a45702b65ac44c Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Tue, 3 Jun 2014 21:10:55 -0700 Subject: [PATCH] Dockerfile: Add EasyRSA-3 support * EasyRSA v3 is preferred over v2 because it includes support for elliptic curves. --- Dockerfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e130967..f2e863b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,17 @@ FROM ubuntu:14.04 MAINTAINER Kyle Manna -RUN apt-get install -y openvpn iptables curl +RUN apt-get install -y openvpn iptables curl git-core -ADD ./bin /usr/local/sbin -RUN chmod a+x /usr/local/sbin/* +# Update checkout to use tags when v3.0 is finally released +RUN git clone https://github.com/OpenVPN/easy-rsa.git /usr/local/share/easy-rsa +RUN cd /usr/local/share/easy-rsa && git checkout -b tested 89f369c5bbd13fbf0da2ea6361632c244e8af532 +RUN ln -s /usr/local/share/easy-rsa/easyrsa3/easyrsa /usr/local/bin -VOLUME /etc/openvpn +ADD ./bin /usr/local/bin +RUN chmod a+x /usr/local/bin/* + +VOLUME ["/etc/openvpn"] EXPOSE 443/tcp 1194/udp 8080/tcp