docker-qbittorrent/Dockerfile
2018-08-14 16:16:25 +01:00

82 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.8
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
# package versions
ARG QBITTORRENT_VER="4.1.2"
ARG RASTERBAR_VER="1.1.9"
# environment settings
ENV HOME="/config" \
XDG_CONFIG_HOME="/config" \
XDG_DATA_HOME="/config"
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
autoconf \
automake \
boost-dev \
cmake \
curl \
file \
g++ \
geoip-dev \
git \
libtool \
make \
qt5-qttools-dev && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
boost-system \
boost-thread \
ca-certificates \
geoip \
qt5-qtbase \
unrar && \
echo "**** compile libtorrent rasterbar ****" && \
git clone https://github.com/arvidn/libtorrent.git /tmp/libtorrent && \
cd /tmp/libtorrent && \
RASTERBAR_REALVER=${RASTERBAR_VER//./_} && \
git checkout "libtorrent-${RASTERBAR_REALVER}" && \
./autotool.sh && \
./configure \
--disable-debug \
--enable-encryption \
--prefix=/usr && \
make && \
make install && \
strip --strip-unneeded \
/usr/lib/libtorrent-rasterbar.so* \
/usr/lib/libtorrent-rasterbar.a* && \
echo "**** 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 && \
./configure \
--disable-gui \
--prefix=/usr && \
make && \
make install && \
echo "**** 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