Update Dockerfile

This commit is contained in:
MarkusMcNugen 2018-02-11 21:43:07 -05:00 committed by GitHub
parent bffc4e4988
commit 9b651eb258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) \