From 00ec25727714966c7aa284818e47b3c99fc7973b Mon Sep 17 00:00:00 2001 From: MarkusMcNugen Date: Mon, 22 Mar 2021 21:13:42 -0400 Subject: [PATCH] Update Dockerfile --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4ec35ab..a5f1a97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,8 +39,9 @@ RUN buildDeps=" \ xz \ "; \ set -x \ - && apk add --update --virtual .build-deps $buildDeps \ - && export LIBTOR_VERSION=$(curl --silent "https://github.com/arvidn/libtorrent/tags" 2>&1 | grep -m 1 'libtorrent-' | sed -e 's~^[ \t]*~~;s~[ \t]*$~~' | sed -n 's/.*href="\([^"]*\).*/\1/p' | sed 's!.*/!!') \ + && apk add --update --virtual .build-deps $buildDeps + +RUN export LIBTOR_VERSION=$(curl --silent "https://github.com/arvidn/libtorrent/tags" 2>&1 | grep -m 1 'libtorrent-' | sed -e 's~^[ \t]*~~;s~[ \t]*$~~' | sed -n 's/.*href="\([^"]*\).*/\1/p' | sed 's!.*/!!') \ && curl -L "https://github.com/arvidn/libtorrent/archive/$LIBTOR_VERSION.tar.gz" -o libtor.tar.gz \ && mkdir -p /usr/src/libtorrent \ && tar -xzf libtor.tar.gz -C /usr/src/libtorrent --strip-components=1 \ @@ -65,8 +66,9 @@ RUN buildDeps=" \ && make install \ && cd / \ && rm -rf /usr/src/libtorrent \ - && rm -rf /usr/src/qbittorrent \ - && runDeps="$( \ + && rm -rf /usr/src/qbittorrent + +RUN runDeps="$( \ scanelf --needed --nobanner /usr/local/bin/qbittorrent-nox \ | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | xargs -r apk info --installed \