From 70195d1dc6f45c66c5dce8c399015d6a62c06df8 Mon Sep 17 00:00:00 2001 From: DyonR Date: Thu, 26 Aug 2021 14:25:39 +0200 Subject: [PATCH] Switch to latest libtorrent commit instead of release --- Dockerfile | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6c59145..0d709d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -93,16 +93,9 @@ RUN apt update \ && apt install -y --no-install-recommends \ build-essential \ ca-certificates \ - curl \ - jq \ - libssl-dev \ - && LIBTORRENT_ASSETS=$(curl -sX GET "https://api.github.com/repos/arvidn/libtorrent/releases" | jq '.[] | select(.prerelease==false) | select(.target_commitish=="RC_2_0") | .assets_url' | head -n 1 | tr -d '"') \ - && LIBTORRENT_DOWNLOAD_URL=$(curl -sX GET ${LIBTORRENT_ASSETS} | jq '.[0] .browser_download_url' | tr -d '"') \ - && LIBTORRENT_NAME=$(curl -sX GET ${LIBTORRENT_ASSETS} | jq '.[0] .name' | tr -d '"') \ - && curl -o /opt/${LIBTORRENT_NAME} -L ${LIBTORRENT_DOWNLOAD_URL} \ - && tar -xzf /opt/${LIBTORRENT_NAME} \ - && rm /opt/${LIBTORRENT_NAME} \ - && cd /opt/libtorrent-rasterbar* \ + git \ + && git clone --recursive https://github.com/arvidn/libtorrent.git \ + && cd /opt/libtorrent \ && cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_CXX_STANDARD=17 \ && cmake --build build --parallel $(nproc) \ && cmake --install build \ @@ -111,9 +104,7 @@ RUN apt update \ && apt purge -y \ build-essential \ ca-certificates \ - curl \ - jq \ - libssl-dev \ + git \ && apt-get clean \ && apt autoremove -y --purge \ && rm -rf \