-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
75 lines (70 loc) · 2.36 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
73
74
75
FROM alpine:3.5
ARG LIBTORRENT_VERSION=1.0.11
ARG LIBTORRENT_VERSION_UNDERSCORE=1_0_11
ARG DELUGE_VERSION=1.3.13
ENV LANG=C.UTF-8
RUN apk add --no-cache \
boost-python \
boost-system \
geoip \
intltool \
libffi \
libgcc \
libjpeg-turbo \
libstdc++ \
openssl \
py2-pip \
python2 \
supervisor \
tiff \
zlib && \
apk add --no-cache --virtual .build-deps \
boost-dev \
ca-certificates \
gcc \
g++ \
libffi-dev \
libjpeg-turbo-dev \
make \
musl-dev \
openssl-dev \
python2-dev \
tar \
tiff-dev \
wget \
zlib-dev && \
pip --no-cache-dir install \
chardet==2.3.0 \
Mako==1.0.6 \
Pillow==4.0.0 \
pyOpenSSL==16.2.0 \
python-geoip==1.2 \
pyxdg==0.25 \
service-identity==16.0.0 \
setproctitle==1.1.10 \
Twisted==17.1.0 && \
( \
wget --quiet -O /tmp/libtorrent-rasterbar-$LIBTORRENT_VERSION.tar.gz https://github.com/arvidn/libtorrent/releases/download/libtorrent-$LIBTORRENT_VERSION_UNDERSCORE/libtorrent-rasterbar-$LIBTORRENT_VERSION.tar.gz && \
tar -xf /tmp/libtorrent-rasterbar-$LIBTORRENT_VERSION.tar.gz -C /tmp && \
(cd /tmp/libtorrent-rasterbar-$LIBTORRENT_VERSION && ./configure --with-libiconv --enable-python-binding --prefix=/usr && make && make install) 1>/dev/null 2>&1 && \
rm -rf /tmp/libtorrent-rasterbar-$LIBTORRENT_VERSION.tar.gz /tmp/libtorrent-rasterbar-$LIBTORRENT_VERSION \
) && \
( \
wget --quiet -O /tmp/deluge-$DELUGE_VERSION.tar.gz http://download.deluge-torrent.org/source/deluge-$DELUGE_VERSION.tar.gz && \
tar -xf /tmp/deluge-$DELUGE_VERSION.tar.gz -C /tmp && \
(cd /tmp/deluge-$DELUGE_VERSION && ls -l && python setup.py build && python setup.py install --prefix=/usr) && \
rm -rf /tmp/deluge-$DELUGE_VERSION.tar.gz /tmp/deluge-$DELUGE_VERSION \
) && \
apk del .build-deps
ADD supervisor.deluge.ini /etc/supervisor.d/deluge.ini
ADD deluge.setup.sh /
RUN apk add --no-cache --virtual .sh-deps netcat-openbsd && \
( \
/bin/sh /deluge.setup.sh \
) && \
rm /deluge.setup.sh && \
apk del .sh-deps
EXPOSE 58846 8112
EXPOSE 41250-41259/tcp
EXPOSE 41250-41259/udp
ENTRYPOINT ["/usr/bin/supervisord", "-n"]