seedbox/Dockerfiles/rtorrent/Dockerfile

38 lines
1.2 KiB
Docker

FROM kelvinchen/seedbox:base
MAINTAINER Kelvin Chen <kelvin@kelvinchen.org>
# Install all dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
rtorrent \
php5-fpm \
php5-cli \
php5-geoip \
mediainfo \
irssi \
libxml-libxml-perl \
libjson-perl \
libnet-ssleay-perl \
libdigest-perl \
libhtml-parser-perl \
libarchive-zip-perl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Configure/install r(u)torrent and autodl-irssi
RUN ln -s /config/rtorrent/rtorrent.rc ~/.rtorrent.rc && \
git clone --depth=1 https://github.com/Novik/ruTorrent.git /opt/rutorrent && \
git clone --depth=1 --recursive \
https://github.com/autodl-community/autodl-irssi.git ~/.irssi/scripts && \
mkdir -p ~/.irssi/scripts/autorun && \
cp ~/.irssi/scripts/autodl-irssi.pl ~/.irssi/scripts/autorun && \
mkdir -p ~/.autodl
VOLUME /config /torrents
COPY start rtorrent.rc supervisord.conf autodl.cfg /
COPY nginx.conf /etc/nginx/nginx.conf
COPY rutorrent_config.php /opt/rutorrent/conf/config.php
EXPOSE 80 49161 49161/udp 6881/udp
CMD ["/start"]