2014-06-04 03:35:44 +00:00
|
|
|
# Original credit: https://github.com/jpetazzo/dockvpn
|
|
|
|
|
2014-06-04 03:31:53 +00:00
|
|
|
FROM ubuntu:14.04
|
2014-06-04 03:35:44 +00:00
|
|
|
|
|
|
|
MAINTAINER Kyle Manna <kyle@kylemanna.com>
|
|
|
|
|
2014-06-04 08:39:38 +00:00
|
|
|
RUN apt-get install -y openvpn iptables git-core dnsutils
|
2014-06-04 03:54:47 +00:00
|
|
|
|
2014-06-04 04:10:55 +00:00
|
|
|
# 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
|
2014-06-04 03:54:47 +00:00
|
|
|
|
2014-06-04 04:10:55 +00:00
|
|
|
ADD ./bin /usr/local/bin
|
|
|
|
RUN chmod a+x /usr/local/bin/*
|
|
|
|
|
2014-06-04 17:52:59 +00:00
|
|
|
# Needed by scripts
|
|
|
|
ENV OPENVPN /etc/openvpn
|
|
|
|
ENV EASYRSA /usr/local/share/easy-rsa/easyrsa3
|
|
|
|
ENV EASYRSA_PKI $OPENVPN/pki
|
|
|
|
ENV EASYRSA_VARS_FILE $OPENVPN/vars
|
|
|
|
|
2014-06-04 04:10:55 +00:00
|
|
|
VOLUME ["/etc/openvpn"]
|
2014-06-04 03:54:47 +00:00
|
|
|
|
2014-06-04 16:30:04 +00:00
|
|
|
EXPOSE 1194/udp
|
2014-06-04 03:54:47 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["openvpn.sh"]
|