mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-25 20:14:58 +00:00
Update Dockerfile
This commit is contained in:
parent
bffc4e4988
commit
9b651eb258
12
Dockerfile
12
Dockerfile
@ -51,16 +51,16 @@ RUN buildDeps=" \
|
|||||||
&& export CXXFLAGS=-I/opt/local/include \
|
&& export CXXFLAGS=-I/opt/local/include \
|
||||||
&& ./configure --disable-debug --enable-encryption --prefix=/usr \
|
&& ./configure --disable-debug --enable-encryption --prefix=/usr \
|
||||||
&& make -j$(nproc) \
|
&& make -j$(nproc) \
|
||||||
&& make install
|
&& make install \
|
||||||
|
&& QBIT_VERSION=$(curl --silent "https://github.com/qbittorrent/qBittorrent/tags" 2>&1 | grep -m 1 'release-' | sed -e 's~^[ \t]*~~;s~[ \t]*$~~' | sed -n 's/.*href="\([^"]*\).*/\1/p' | sed 's!.*/!!') \
|
||||||
RUN export QBIT_VERSION=$(curl --silent "https://github.com/qbittorrent/qBittorrent/tags" 2>&1 | grep -m 1 'release-' | sed -e 's~^[ \t]*~~;s~[ \t]*$~~' | sed -n 's/.*href="\([^"]*\).*/\1/p' | sed 's!.*/!!') \
|
|
||||||
&& curl -L "https://github.com/qbittorrent/qBittorrent/archive/$QBIT_VERSION.tar.gz" -o qbittorrent.tar.gz \
|
&& curl -L "https://github.com/qbittorrent/qBittorrent/archive/$QBIT_VERSION.tar.gz" -o qbittorrent.tar.gz \
|
||||||
&& mkdir -p /usr/src/qbittorrent \
|
&& mkdir -p /usr/src/qbittorrent \
|
||||||
&& tar -xzf qbittorrent.tar.gz -C /usr/src/qbittorrent --strip-components=1 \
|
&& tar -xzf qbittorrent.tar.gz -C /usr/src/qbittorrent --strip-components=1 \
|
||||||
&& rm qbittorrent.tar.gz* \
|
&& rm qbittorrent.tar.gz* \
|
||||||
&& cd /usr/src/qbittorrent/src/app \
|
&& EXECINFO=$(grep -rne 'include <execinfo.h>' /usr/src/qbittorrent/src/app/main.cpp | grep -Eo '^[^:]+') \
|
||||||
&& cp /tmp/patches/main.patch /usr/src/qbittorrent/src/app \
|
&& sed -i "$(EXECINFO)s/.*/" /usr/src/qbittorrent/src/app/main.cpp \
|
||||||
&& patch -i /usr/src/qbittorrent/src/app/main.patch \
|
&& STACKTRACE=$(grep -rne 'include "stacktrace.h"' /usr/src/qbittorrent/src/app/main.cpp | grep -Eo '^[^:]+') \
|
||||||
|
&& sed -i "$(STACKTRACE)s/.*/" /usr/src/qbittorrent/src/app/main.cpp \
|
||||||
&& cd /usr/src/qbittorrent/ \
|
&& cd /usr/src/qbittorrent/ \
|
||||||
&& ./configure --disable-gui --prefix=/usr \
|
&& ./configure --disable-gui --prefix=/usr \
|
||||||
&& make -j$(nproc) \
|
&& make -j$(nproc) \
|
||||||
|
Loading…
Reference in New Issue
Block a user