From 951b1692770433a7a1f7e759b55d38ded1bb805f Mon Sep 17 00:00:00 2001 From: DyonR Date: Tue, 8 Dec 2020 23:31:32 +0100 Subject: [PATCH] Switch to `Release` tags of qBittorrent --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3184e64..524f61a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -108,8 +108,11 @@ RUN apt update \ qtbase5-dev \ qttools5-dev \ zlib1g-dev \ - && git clone https://github.com/qbittorrent/qBittorrent.git /opt/qBittorrent \ - && cd /opt/qBittorrent \ + && QBITTORRENT_RELEASE=$(curl -sX GET "https://api.github.com/repos/qBittorrent/qBittorrent/tags" | jq '.[0] .name' | tr -d '"') \ + && curl -o /opt/qBittorrent-${QBITTORRENT_RELEASE}.tar.gz -L "https://github.com/qbittorrent/qBittorrent/archive/${QBITTORRENT_RELEASE}.tar.gz" \ + && tar -xzf /opt/qBittorrent-${QBITTORRENT_RELEASE}.tar.gz \ + && rm /opt/qBittorrent-${QBITTORRENT_RELEASE}.tar.gz \ + && cd /opt/qBittorrent-${QBITTORRENT_RELEASE} \ && cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DGUI=OFF -DCMAKE_CXX_STANDARD=17 \ && cmake --build build --parallel $(nproc) \ && cmake --install build \