-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.ubuntu
91 lines (82 loc) · 3.37 KB
/
Dockerfile.ubuntu
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
FROM ubuntu:20.04
ADD ./app/scripts /usr/local/scripts
# Enable the non-interactive mode while installing apps
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update > /dev/null \
&& apt-get -y install --no-install-recommends apt-utils software-properties-common > /dev/null 2>&1 \
&& echo "**** add repositories ****" \
&& add-apt-repository ppa:transmissionbt/ppa > /dev/null \
&& add-apt-repository ppa:deluge-team/stable > /dev/null \
&& apt-get update > /dev/null \
&& echo "**** install packages ****" \
&& apt-get -y upgrade > /dev/null \
&& apt-get -y install --no-install-recommends git curl jq net-tools dnsutils > /dev/null \
&& apt-get -y install --no-install-recommends iputils-ping ufw > /dev/null \
&& apt-get -y install --no-install-recommends dumb-init > /dev/null \
&& apt-get -y install --no-install-recommends deluged deluge-web deluge-console > /dev/null \
&& apt-get -y install --no-install-recommends transmission-cli transmission-common transmission-daemon > /dev/null \
&& apt-get -y install --no-install-recommends tinyproxy > /dev/null \
&& apt-get -y install --no-install-recommends openvpn > /dev/null \
&& bash /usr/local/scripts/install-app.sh \
&& echo "**** cleanup ****" \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& useradd -u 1999 -U -s $(which nologin) jedi
ADD ./app/tmpls /etc/templates
ADD ./app/openvpn /etc/openvpn
ADD ./app/transmission /etc/transmission
ADD ./app/deluge /etc/deluge
ADD ./app/tinyproxy /etc/tinyproxy
ENV CREATE_TUN_DEVICE="true" \
OPENVPN_USERNAME="NONE" \
OPENVPN_PASSWORD="NONE" \
OPENVPN_PROVIDER="NONE" \
OPENVPN_HOSTNAME="NONE" \
OPENVPN_CONNECTION="NONE" \
OPENVPN_PROTO=udp \
TOR_CLIENT_ENABLED=true \
TOR_CLIENT=transmission \
TOR_CLIENT_RUNAS_ROOT=false \
TOR_CLIENT_SETTING_DEFAULT=false \
TOR_RPC_PORT=9091 \
TOR_WATCH_DIR=/data/watch \
TOR_INCOMPLETE_DIR=/data/incomplete \
TOR_DOWNLOAD_DIR=/data/completed \
TRANSMISSION_BIND_ADDRESS_IPV4=0.0.0.0 \
TRANSMISSION_BIND_ADDRESS_IPV6=:: \
TRANSMISSION_PEER_PORT=51413 \
TRANSMISSION_PEER_PORT_RANDOM_HIGH=65535 \
TRANSMISSION_PEER_PORT_RANDOM_LOW=45535 \
TRANSMISSION_RPC_BIND_ADDRESS=0.0.0.0 \
TRANSMISSION_RPC_USERNAME=username \
TRANSMISSION_RPC_PASSWORD=password \
TRANSMISSION_RPC_URL=/transmission/ \
TRANSMISSION_RPC_WHITELIST=127.0.0.1 \
TRANSMISSION_HOME=/data/transmission-home \
TRANSMISSION_WEB_UI= \
TRANSMISSION_LOG_LEVEL=info \
DELUGE_HOME=/data/deluge-home \
DELUGE_AUTH_USERNAME=username \
DELUGE_AUTH_PASSWORD=password \
DELUGE_LOG_LEVEL=info \
DELUGE_LISTEN_INTERFACE=0.0.0.0 \
DELUGE_OUTGOING_INTERFACE=0.0.0.0 \
DELUGE_INTERFACE=0.0.0.0 \
DELUGE_DAEMON_PORT=58846 \
DELUGE_PEER_PORT=53242 \
DELUGE_PEER_PORT_OUT=55242 \
DELUGE_PEER_PORT_RANDOM_HIGH=65535 \
DELUGE_PEER_PORT_RANDOM_LOW=45535 \
LOG_FILE=/data/application.log \
ENABLE_FILE_LOGGING=true \
HEALTH_CHECK_HOST=www.google.com \
FIREWALL_ENABLED=false \
FIREWALL_ALLOW_GW_CIDR=false \
WEBPROXY_ENABLED=false \
WEBPROXY_PORT=8888 \
WEBPROXY_USER= \
WEBPROXY_PASSWORD=
VOLUME /data
VOLUME /control
HEALTHCHECK --interval=5m --timeout=15s --start-period=30s CMD /usr/local/scripts/health.sh
EXPOSE 9091 8888
CMD ["dumb-init", "/etc/openvpn/startVPN.sh"]