035ff64200
* Add ENV configuration options to Dockerfile as opposed to keeping in the wrapper script. * First step to splitting up openvpn.sh in to smaller scripts.
28 lines
770 B
Docker
28 lines
770 B
Docker
# Original credit: https://github.com/jpetazzo/dockvpn
|
|
|
|
FROM ubuntu:14.04
|
|
|
|
MAINTAINER Kyle Manna <kyle@kylemanna.com>
|
|
|
|
RUN apt-get install -y openvpn iptables git-core dnsutils
|
|
|
|
# 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
|
|
|
|
ADD ./bin /usr/local/bin
|
|
RUN chmod a+x /usr/local/bin/*
|
|
|
|
# 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
|
|
|
|
VOLUME ["/etc/openvpn"]
|
|
|
|
EXPOSE 1194/udp
|
|
|
|
ENTRYPOINT ["openvpn.sh"]
|