2016-04-11 15:59:32 +02:00
|
|
|
FROM alpine:3.3
|
|
|
|
MAINTAINER xataz <https://github.com/xataz/dockerfiles>
|
|
|
|
MAINTAINER Wonderfall <wonderfall@schrodinger.io>
|
|
|
|
|
2016-05-01 19:51:21 +02:00
|
|
|
ARG MEDIAINFO_VER=0.7.85
|
2016-04-11 15:59:32 +02:00
|
|
|
ARG RTORRENT_VER=0.9.6
|
|
|
|
ARG LIBTORRENT_VER=0.13.6
|
|
|
|
ARG FILEBOT_VER=4.6.1
|
|
|
|
ARG BUILD_CORES
|
|
|
|
|
|
|
|
ENV UID=991 \
|
|
|
|
GID=991 \
|
|
|
|
WEBROOT=/ \
|
|
|
|
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
|
|
|
|
|
|
|
|
RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
|
|
|
&& echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
|
|
|
&& echo "@community http://nl.alpinelinux.org/alpine/v3.3/community/" >> /etc/apk/repositories \
|
|
|
|
&& NB_CORES=${BUILD_CORES-`getconf _NPROCESSORS_CONF`} \
|
|
|
|
&& BUILD_DEPS=" \
|
|
|
|
build-base \
|
|
|
|
git \
|
|
|
|
libtool \
|
|
|
|
automake \
|
|
|
|
autoconf \
|
|
|
|
wget \
|
|
|
|
subversion \
|
|
|
|
cppunit-dev \
|
|
|
|
openssl-dev \
|
|
|
|
ncurses-dev \
|
2016-04-23 13:44:06 +02:00
|
|
|
curl-dev \
|
2016-04-23 13:40:46 +02:00
|
|
|
binutils" \
|
2016-04-11 15:59:32 +02:00
|
|
|
&& apk -U add \
|
|
|
|
${BUILD_DEPS} \
|
|
|
|
ffmpeg \
|
|
|
|
ca-certificates \
|
|
|
|
nginx \
|
|
|
|
php7@testing \
|
|
|
|
php7-fpm@testing \
|
|
|
|
php7-json@testing \
|
|
|
|
curl \
|
|
|
|
gzip \
|
|
|
|
zip \
|
|
|
|
unrar \
|
|
|
|
supervisor \
|
|
|
|
geoip \
|
|
|
|
tini@commuedge \
|
|
|
|
openjdk8-jre@community \
|
|
|
|
&& cd /tmp \
|
|
|
|
&& wget -q http://downloads.sourceforge.net/mktorrent/mktorrent-1.0.tar.gz \
|
|
|
|
&& tar xzvf mktorrent-1.0.tar.gz \
|
|
|
|
&& svn checkout http://svn.code.sf.net/p/xmlrpc-c/code/stable xmlrpc-c \
|
|
|
|
&& git clone https://github.com/rakshasa/libtorrent.git \
|
|
|
|
&& git clone https://github.com/rakshasa/rtorrent.git \
|
2016-04-23 13:44:06 +02:00
|
|
|
&& wget -q http://mediaarea.net/download/binary/mediainfo/${MEDIAINFO_VER}/MediaInfo_CLI_${MEDIAINFO_VER}_GNU_FromSource.tar.gz \
|
|
|
|
&& wget -q http://mediaarea.net/download/binary/libmediainfo0/${MEDIAINFO_VER}/MediaInfo_DLL_${MEDIAINFO_VER}_GNU_FromSource.tar.gz \
|
2016-04-11 15:59:32 +02:00
|
|
|
&& tar xzf MediaInfo_DLL_${MEDIAINFO_VER}_GNU_FromSource.tar.gz \
|
|
|
|
&& tar xzf MediaInfo_CLI_${MEDIAINFO_VER}_GNU_FromSource.tar.gz \
|
|
|
|
&& tar xzvf mktorrent-1.0.tar.gz \
|
2016-04-23 13:44:06 +02:00
|
|
|
&& cd /tmp/mktorrent-1.0 && make -j ${NB_CORES} && make install \
|
|
|
|
&& cd /tmp/MediaInfo_DLL_GNU_FromSource && ./SO_Compile.sh \
|
|
|
|
&& cd /tmp/MediaInfo_DLL_GNU_FromSource/ZenLib/Project/GNU/Library && make install \
|
|
|
|
&& cd /tmp/MediaInfo_DLL_GNU_FromSource/MediaInfoLib/Project/GNU/Library && make install \
|
|
|
|
&& cd /tmp/MediaInfo_CLI_GNU_FromSource && ./CLI_Compile.sh \
|
|
|
|
&& cd /tmp/MediaInfo_CLI_GNU_FromSource/MediaInfo/Project/GNU/CLI && make install \
|
|
|
|
&& cd /tmp/xmlrpc-c && ./configure && make -j ${NB_CORES} && make install \
|
|
|
|
&& cd /tmp/libtorrent && git checkout ${LIBTORRENT_VER} && ./autogen.sh && ./configure \
|
|
|
|
&& make -j ${NB_CORES} && make install \
|
|
|
|
&& cd /tmp/rtorrent && git checkout ${RTORRENT_VER} && ./autogen.sh && ./configure --with-xmlrpc-c \
|
|
|
|
&& make -j ${NB_CORES} && make install \
|
|
|
|
&& mkdir -p /var/www && cd /var/www \
|
2016-04-11 15:59:32 +02:00
|
|
|
&& git clone https://github.com/Novik/ruTorrent.git rutorrent \
|
|
|
|
&& cd /var/www/rutorrent/plugins/ \
|
|
|
|
&& git clone https://github.com/xombiemp/rutorrentMobile.git mobile \
|
|
|
|
&& cd /var/www/rutorrent/plugins/theme/themes \
|
|
|
|
&& git clone https://github.com/exetico/FlatUI.git \
|
2016-04-23 13:44:06 +02:00
|
|
|
&& mv FlatUI/FlatUI_* . && rm -rf FlatUI \
|
2016-05-01 20:03:59 +02:00
|
|
|
&& mkdir Material && cd Material \
|
|
|
|
&& wget http://www.sendbox.fr/a542c550bcde658d/MaterialDesign.zip \
|
|
|
|
&& unzip MaterialDesign.zip && rm MaterialDesign.zip \
|
2016-04-11 15:59:32 +02:00
|
|
|
&& mv /var/www/rutorrent /var/www/torrent \
|
|
|
|
&& mkdir /filebot \
|
|
|
|
&& wget -q http://downloads.sourceforge.net/project/filebot/filebot/FileBot_${FILEBOT_VER}/FileBot_${FILEBOT_VER}-portable.zip -P /tmp \
|
|
|
|
&& unzip -q /tmp/FileBot_${FILEBOT_VER}-portable.zip -d /filebot \
|
2016-04-23 13:40:46 +02:00
|
|
|
&& strip -s /usr/local/bin/rtorrent \
|
|
|
|
&& strip -s /usr/local/bin/mediainfo \
|
2016-04-11 15:59:32 +02:00
|
|
|
&& apk del ${BUILD_DEPS} \
|
2016-04-23 13:44:06 +02:00
|
|
|
&& deluser svn && delgroup svnusers \
|
2016-04-11 15:59:32 +02:00
|
|
|
&& rm -rf /var/cache/apk/* /tmp/*
|
|
|
|
|
|
|
|
COPY rootfs /
|
|
|
|
|
|
|
|
RUN chmod +x /usr/bin/*
|
|
|
|
|
|
|
|
VOLUME /data /var/www/torrent/share/users
|
|
|
|
EXPOSE 80 49184 49184/udp
|
|
|
|
|
|
|
|
LABEL description="BitTorrent client with WebUI front-end" \
|
|
|
|
rtorrent="rTorrent BiTorrent client v$RTORRENT_VER" \
|
|
|
|
libtorrent="libtorrent v$LIBTORRENT_VER" \
|
|
|
|
mediainfo="mediainfo v$MEDIAINFO_VER" \
|
|
|
|
filebot="Filebot v$FILEBOT_VER"
|
|
|
|
|
|
|
|
CMD ["tini","--","startup"]
|