forked from brycelarge/xteve-vpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
72 lines (63 loc) · 2.1 KB
/
Dockerfile
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
63
64
65
66
67
68
69
70
71
72
FROM lsiobase/ubuntu:bionic
ARG DEBIAN_FRONTEND="noninteractive"
RUN \
echo "**** install runtime ****" && \
apt-get update && \
apt-get install -y \
vlc \
ffmpeg \
tzdata \
unzip \
jq \
ufw \
iputils-ping \
openvpn \
dos2unix \
moreutils \
lsb-release \
gnupg2 \
net-tools \
bc && \
echo "**** install speedtest cli ****" && \
export INSTALL_KEY=379CE192D401AB61 && \
export DEB_DISTRO=$(lsb_release -sc) && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $INSTALL_KEY && \
echo "deb https://ookla.bintray.com/debian ${DEB_DISTRO} main" | tee /etc/apt/sources.list.d/speedtest.list && \
apt-get update && \
apt-get install -y speedtest && \
echo "**** install xTeVe ****" && \
curl -L "https://github.com/xteve-project/xTeVe-Downloads/blob/master/xteve_linux_amd64.tar.gz?raw=true" -o /tmp/xteve_linux_amd64.tar.gz && \
tar xf /tmp/xteve_linux_amd64.tar.gz -C \
/usr/local/bin/ --strip-components=1 && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# env
ENV \
XTEVE_BRANCH=master \
XTEVE_PORT=34400 \
XTEVE_DEBUG=0 \
DEBUG=false \
TZ=Africa/Johannesburg \
NAME_SERVERS=209.222.18.222,84.200.69.80,37.235.1.174,1.1.1.1,209.222.18.218,37.235.1.177,84.200.70.40,1.0.0.1 \
OPENVPN_PROVIDER='**None**' \
OPENVPN_CONFIG='**None**' \
OPENVPN_USERNAME='**None**' \
OPENVPN_PASSWORD='**None**' \
CREATE_TUN_DEVICE=true \
OPENVPN_OPTIONS='' \
OPENVPN_PROTOCOL='udp'
# Timezone (TZ): Add the tzdata package and configure for EST timezone.
# This will override the default container time in UTC.
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# add local files
COPY root/ /
RUN /etc/openvpn/pia/update.sh && /etc/openvpn/surfshark/update.sh && /etc/openvpn/vyprvpn/update.sh
# setup a health check to monitor OpenVPN
HEALTHCHECK --interval=5m CMD /etc/scripts/healthcheck.sh
# Configure container volume mappings
VOLUME /config /tmp/xteve
# Set default container port
EXPOSE 34400