Switch to latest libtorrent commit instead of release
This commit is contained in:
parent
9bf6a096df
commit
70195d1dc6
17
Dockerfile
17
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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user