forked from linuxserver/docker-rutorrent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
72 lines (63 loc) · 1.34 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/alpine:3.6
MAINTAINER sparklyballs
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
# copy patches
COPY patches/ /defaults/patches/
# install packages
RUN \
apk add --no-cache \
ca-certificates \
curl \
fcgi \
ffmpeg \
geoip \
gzip \
logrotate \
nginx \
php7 \
php7-cgi \
php7-fpm \
php7-json \
php7-mbstring \
php7-pear \
rtorrent \
screen \
tar \
unrar \
unzip \
wget \
zip && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/testing \
mediainfo && \
# install webui
mkdir -p \
/usr/share/webapps/rutorrent \
/defaults/rutorrent-conf && \
curl -o \
/tmp/rutorrent.tar.gz -L \
"https://github.com/Novik/ruTorrent/archive/master.tar.gz" && \
tar xf \
/tmp/rutorrent.tar.gz -C \
/usr/share/webapps/rutorrent --strip-components=1 && \
mv /usr/share/webapps/rutorrent/conf/* \
/defaults/rutorrent-conf/ && \
rm -rf \
/defaults/rutorrent-conf/users && \
# patch snoopy.inc for rss fix
cd /usr/share/webapps/rutorrent/php && \
patch < /defaults/patches/snoopy.patch && \
# cleanup
rm -rf \
/etc/nginx/conf.d/default.conf \
/tmp/* && \
# fix logrotate
sed -i "s#/var/log/messages {}.*# #g" /etc/logrotate.conf
# add local files
COPY root/ /
# ports and volumes
EXPOSE 80
VOLUME /config /downloads