forked from kylemanna/docker-openvpn
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.arm64
More file actions
62 lines (48 loc) · 1.57 KB
/
Dockerfile.arm64
File metadata and controls
62 lines (48 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM arm64v8/alpine:latest
LABEL maintainer="Mehmet Yasin AKAR <yasin.akar@valuabletouch.com>"
ENV S6_OVERLAY_VERSION=v3.2.0.2
ENV S6_KEEP_ENV=1
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
RUN set -ex; \
apk add \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/main \
--update \
--no-cache \
openvpn \
easy-rsa \
dnsmasq \
iptables \
iproute2 \
bash \
curl \
openvpn-auth-pam \
google-authenticator; \
ln -s /usr/share/easy-rsa/easyrsa /usr/local/bin; \
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*
RUN set -ex; \
apk add \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing \
--update \
--no-cache \
pamtester; \
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*
RUN set -ex; \
curl -L https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz | \
tar -C / -Jxvf -; \
curl -L https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-aarch64.tar.xz | \
tar -C / -Jxvf -
COPY rootfs/ /
RUN chmod a+x /usr/local/bin/ovpn_*
RUN chmod a+x /etc/cont-init.d/*
RUN chmod a+x /etc/services.d/*/run
ENV EASYRSA=/usr/share/easy-rsa
ENV EASYRSA_CRL_DAYS=3650
ENV DNSMASQ=/etc/dnsmasq.d
ENV OPENVPN=/etc/openvpn
ENV OVPN_SUBNET=10.8.0.0/24
ENV OVPN_SERVER=10.8.0.1
EXPOSE 1194/udp
VOLUME ["/etc/dnsmasq.d", "/etc/openvpn"]
ENTRYPOINT ["/init"]
CMD []