Skip to content

Commit 24944b0

Browse files
authored
Merge pull request #226 from vielmetti/patch-1
Create Dockerfile.aarch64
2 parents 93c3a04 + b74cbd5 commit 24944b0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Dockerfile.aarch64

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Original credit: https://github.com/jpetazzo/dockvpn
2+
3+
# Smallest base image
4+
FROM aarch64/alpine:3.5
5+
6+
MAINTAINER Kyle Manna <[email protected]>
7+
8+
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community/" >> /etc/apk/repositories && \
9+
echo "http://dl-4.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories && \
10+
apk add --update openvpn iptables bash easy-rsa openvpn-auth-pam google-authenticator pamtester && \
11+
ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin && \
12+
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*
13+
14+
# Needed by scripts
15+
ENV OPENVPN /etc/openvpn
16+
ENV EASYRSA /usr/share/easy-rsa
17+
ENV EASYRSA_PKI $OPENVPN/pki
18+
ENV EASYRSA_VARS_FILE $OPENVPN/vars
19+
20+
VOLUME ["/etc/openvpn"]
21+
22+
# Internally uses port 1194/udp, remap using `docker run -p 443:1194/tcp`
23+
EXPOSE 1194/udp
24+
25+
CMD ["ovpn_run"]
26+
27+
ADD ./bin /usr/local/bin
28+
RUN chmod a+x /usr/local/bin/*
29+
30+
# Add support for OTP authentication using a PAM module
31+
ADD ./otp/openvpn /etc/pam.d/

0 commit comments

Comments
 (0)