File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
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/
You can’t perform that action at this time.
0 commit comments