Update Dockerfile

This commit is contained in:
MarkusMcNugen 2018-02-11 22:19:03 -05:00 committed by GitHub
parent 0371e222c7
commit a1af55d137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,9 +57,8 @@ RUN buildDeps=" \
&& 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* \
&& sed -i "$(grep -rne 'include <execinfo.h>' /usr/src/qbittorrent/src/app/main.cpp | grep -Eo '^[^:]+')s/.*/" /usr/src/qbittorrent/src/app/main.cpp \ && cd /usr/src/qbittorrent/src/app \
&& export STACKTRACE=$(grep -rne 'include "stacktrace.h"' /usr/src/qbittorrent/src/app/main.cpp | grep -Eo '^[^:]+') \ && patch -i /tmp/patches/main.patch && \
&& sed -i "$STACKTRACEs/.*/" /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) \