From b74cbd5c74f980865c0bc17918c754592a2d9b97 Mon Sep 17 00:00:00 2001 From: Edward Vielmetti Date: Thu, 23 Feb 2017 13:59:43 -0500 Subject: [PATCH] Create Dockerfile.aarch64 New Dockerfile to support aarch64 (ARMv8, arm64). --- Dockerfile.aarch64 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Dockerfile.aarch64 diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 new file mode 100644 index 0000000..39ae41d --- /dev/null +++ b/Dockerfile.aarch64 @@ -0,0 +1,31 @@ +# Original credit: https://github.com/jpetazzo/dockvpn + +# Smallest base image +FROM aarch64/alpine:3.5 + +MAINTAINER Kyle Manna + +RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community/" >> /etc/apk/repositories && \ + echo "http://dl-4.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories && \ + apk add --update openvpn iptables bash easy-rsa openvpn-auth-pam google-authenticator pamtester && \ + ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \ + rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/* + +# Needed by scripts +ENV OPENVPN /etc/openvpn +ENV EASYRSA /usr/share/easy-rsa +ENV EASYRSA_PKI $OPENVPN/pki +ENV EASYRSA_VARS_FILE $OPENVPN/vars + +VOLUME ["/etc/openvpn"] + +# Internally uses port 1194/udp, remap using `docker run -p 443:1194/tcp` +EXPOSE 1194/udp + +CMD ["ovpn_run"] + +ADD ./bin /usr/local/bin +RUN chmod a+x /usr/local/bin/* + +# Add support for OTP authentication using a PAM module +ADD ./otp/openvpn /etc/pam.d/