-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (23 loc) · 760 Bytes
/
Dockerfile
File metadata and controls
36 lines (23 loc) · 760 Bytes
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
FROM padhihomelab/alpine-base:3.23.2_0.19.0_0.3
ENV ENTRYPOINT_RUN_AS_ROOT=1
ENV CONFIG_FILE_NAME="client.conf"
ENV ENABLE_IPv6=0
ENV ENABLE_SOCKS_PROXY=1
ENV EXTRA_OPENVPN_FLAGS=""
ENV FORWARDED_PORTS=""
COPY start.sh /usr/local/bin/start-vpn
COPY sockd.conf /
COPY entrypoint-scripts \
/etc/docker-entrypoint.d/99-extra-scripts
RUN chmod +x /usr/local/bin/start-vpn \
/etc/docker-entrypoint.d/99-extra-scripts/*.sh \
&& apk add --no-cache --update \
bash \
bind-tools \
dante-server \
ip6tables \
openvpn=2.6.16-r0
VOLUME [ "/config" ]
CMD start-vpn
HEALTHCHECK --interval=15s --timeout=5s --start-period=15s \
CMD ping -I tun0 -c 3 google.com || exit 1