Files
qbittorrent/Dockerfile

91 lines
1.8 KiB
Docker
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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}"
# package versions
ARG QBITTORRENT_VER="3.3.13"
ARG RASTERBAR_VER="RC_1_0"
# environment settings
ENV HOME="/config" \
XDG_CONFIG_HOME="/config" \
XDG_DATA_HOME="/config"
# copy patches
COPY patches/ /tmp/patches
# install build packages
RUN \
apk add --no-cache --virtual=build-dependencies \
autoconf \
automake \
boost-dev \
cmake \
curl \
file \
g++ \
geoip-dev \
git \
libtool \
make \
qt5-qttools-dev && \
# install runtime packages
apk add --no-cache \
boost-system \
boost-thread \
ca-certificates \
geoip \
qt5-qtbase && \
# compile libtorrent rasterbar
git clone https://github.com/arvidn/libtorrent.git /tmp/libtorrent && \
cd /tmp/libtorrent && \
git checkout ${RASTERBAR_VER} && \
./autotool.sh && \
./configure \
--disable-debug \
--enable-encryption \
--prefix=/usr \
--with-libgeoip=system && \
make && \
make install && \
strip --strip-unneeded \
/usr/lib/libtorrent-rasterbar.so* \
/usr/lib/libtorrent-rasterbar.a* && \
# compile qbittorrent
mkdir -p \
/tmp/qbittorrent-src && \
curl -o \
/tmp/bittorrent.tar.gz -L \
"https://github.com/qbittorrent/qBittorrent/archive/release-${QBITTORRENT_VER}.tar.gz" && \
tar xf \
/tmp/bittorrent.tar.gz -C \
/tmp/qbittorrent-src --strip-components=1 && \
cd /tmp/qbittorrent-src/src/app && \
patch -i /tmp/patches/main.patch && \
cd /tmp/qbittorrent-src && \
./configure \
--disable-gui \
--prefix=/usr && \
make && \
make install && \
# cleanup
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 6881 6881/udp 8080
VOLUME /config /downloads