forked from david-sawatzke/rtorrent-rutorrent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (38 loc) · 1.24 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
FROM ubuntu
USER root
# add ffmpeg ppa
ADD ./ffmpeg-next.list /etc/apt/sources.list.d/ffmpeg-next.list
# install
RUN apt-get update && \
apt-get install -y --force-yes rtorrent unzip unrar-free mediainfo curl php5-fpm php5-cli php5-geoip nginx wget ffmpeg supervisor && \
rm -rf /var/lib/apt/lists/*
# configure nginx
ADD rutorrent-*.nginx /root/
# download rutorrent
RUN mkdir -p /var/www && \
wget https://bintray.com/artifact/download/novik65/generic/ruTorrent-3.7.zip && \
unzip ruTorrent-3.7.zip && \
mv ruTorrent-master /var/www/rutorrent && \
rm ruTorrent-3.7.zip && \
wget https://github.com/xombiemp/rutorrentMobile/archive/master.zip && \
unzip master.zip && \
mv rutorrentMobile-master /var/www/rutorrent/plugins/mobile && \
rm master.zip
RUN groupadd share
RUN useradd -d /home/rtorrent -m -s /bin/bash rtorrent
RUN usermod -aG share www-data
RUN usermod -aG share rtorrent
ADD ./config.php /var/www/rutorrent/conf/
RUN chown -R www-data:www-data /var/www/rutorrent
# add startup and init script
ADD startup.sh /root/
ADD init.sh /root/
# configure supervisor
ADD supervisord.conf /etc/supervisor/conf.d/
EXPOSE 80
EXPOSE 49160
EXPOSE 49161
VOLUME /downloads
VOLUME /watch
VOLUME /config
CMD ["/root/init.sh"]