Update Dockerfile

This commit is contained in:
MarkusMcNugen 2021-03-22 21:13:42 -04:00 committed by GitHub
parent 06244b452a
commit 00ec257277
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,8 +39,9 @@ RUN buildDeps=" \
xz \ xz \
"; \ "; \
set -x \ set -x \
&& apk add --update --virtual .build-deps $buildDeps \ && 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!.*/!!') \
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 \ && curl -L "https://github.com/arvidn/libtorrent/archive/$LIBTOR_VERSION.tar.gz" -o libtor.tar.gz \
&& mkdir -p /usr/src/libtorrent \ && mkdir -p /usr/src/libtorrent \
&& tar -xzf libtor.tar.gz -C /usr/src/libtorrent --strip-components=1 \ && tar -xzf libtor.tar.gz -C /usr/src/libtorrent --strip-components=1 \
@ -65,8 +66,9 @@ RUN buildDeps=" \
&& make install \ && make install \
&& cd / \ && cd / \
&& rm -rf /usr/src/libtorrent \ && rm -rf /usr/src/libtorrent \
&& rm -rf /usr/src/qbittorrent \ && rm -rf /usr/src/qbittorrent
&& runDeps="$( \
RUN runDeps="$( \
scanelf --needed --nobanner /usr/local/bin/qbittorrent-nox \ scanelf --needed --nobanner /usr/local/bin/qbittorrent-nox \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \ | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
| xargs -r apk info --installed \ | xargs -r apk info --installed \