forked from linuxserver/docker-deluge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
58 lines (52 loc) · 1.46 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
FROM lsiobase/ubuntu:focal
# set version label
ARG BUILD_DATE
ARG VERSION
ARG DELUGE_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="bofalot"
# environment variables
ENV PYTHON_EGG_CACHE="/config/plugins/.python-eggs"
COPY requirements.txt /
# install software
RUN \
echo "**** add repositories ****" && \
apt-get update && \
apt-get install -y \
gnupg && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C5E6A5ED249AD24C && \
echo "deb http://ppa.launchpad.net/deluge-team/stable/ubuntu focal main" >> \
/etc/apt/sources.list.d/deluge.list && \
echo "deb-src http://ppa.launchpad.net/deluge-team/stable/ubuntu focal main" >> \
/etc/apt/sources.list.d/deluge.list && \
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y \
deluged \
deluge-console \
deluge-web \
mktorrent \
python3-future \
python3-geoip \
python3-requests \
python3-pip \
p7zip-full \
unrar \
unzip && \
pip3 install -r /requirements.txt && \
echo "**** grab GeoIP database ****" && \
curl -L --retry 10 --retry-max-time 60 \
"https://mailfud.org/geoip-legacy/GeoIP.dat.gz" \
| gunzip > /usr/share/GeoIP/GeoIP.dat && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY root/ /
# ports and volumes
# :8011 - Prometheus Exporter
# :8112 - WebUI
# :58846 - Deluge daemon
EXPOSE 8011 8112 58846 58946 58946/udp