forked from ecabuk/docker-deluge-wireguard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
69 lines (54 loc) · 1.54 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
FROM ubuntu:18.04
ARG DEBIAN_FRONTEND=noninteractive
ARG DELUGED_HOME=/var/lib/deluged
# WEB UI
EXPOSE 8112
# GUI
EXPOSE 58846
# Environment
ENV DELUGE_CONFIG_DIR=/config
ENV DELUGE_DATA_DIR=/data
ENV WG_I_NAME=wg0
#ENV LOCAL_NETWORK=192.168.1.0/24
ENV DELUGE_UMASK=022
ENV DELUGE_WEB_UMASK=027
# Locale
ENV LANG=en_US.UTF-8
ENV LANGUAGE=${LANG}
RUN apt-get update && \
apt-get install -y --no-install-recommends \
software-properties-common \
locales && \
locale-gen ${LANG} && \
add-apt-repository -y ppa:deluge-team/stable && \
apt-get update && \
apt-get install -y --no-install-recommends \
wireguard \
deluged \
deluge-web \
deluge-console \
iproute2 \
iptables \
openresolv \
supervisor \
iputils-ping \
dnsutils \
traceroute \
vim && \
rm -rf /var/lib/apt/lists/*
RUN useradd --home "${DELUGED_HOME}" debian-deluged
# Link default config dir to root
RUN ln -s /var/lib/deluged "${DELUGE_CONFIG_DIR}"
RUN find / -iname core.conf
# Folders
RUN mkdir -p "${DELUGE_DATA_DIR}" "${DELUGED_HOME}" && \
chown -R debian-deluged.debian-deluged \
"${DELUGE_DATA_DIR}" \
"${DELUGED_HOME}"
COPY scripts/* /usr/local/bin/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /usr/local/bin/set-deluge-config.py /entrypoint.sh
# Supervisord config
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]