diff --git a/Dockerfile b/Dockerfile index 964f9ad..b085c0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,9 +57,8 @@ RUN buildDeps=" \ && mkdir -p /usr/src/qbittorrent \ && tar -xzf qbittorrent.tar.gz -C /usr/src/qbittorrent --strip-components=1 \ && rm qbittorrent.tar.gz* \ - && sed -i "$(grep -rne 'include ' /usr/src/qbittorrent/src/app/main.cpp | grep -Eo '^[^:]+')s/.*/" /usr/src/qbittorrent/src/app/main.cpp \ - && export STACKTRACE=$(grep -rne 'include "stacktrace.h"' /usr/src/qbittorrent/src/app/main.cpp | grep -Eo '^[^:]+') \ - && sed -i "$STACKTRACEs/.*/" /usr/src/qbittorrent/src/app/main.cpp \ + && cd /usr/src/qbittorrent/src/app \ + && patch -i /tmp/patches/main.patch && \ && cd /usr/src/qbittorrent/ \ && ./configure --disable-gui --prefix=/usr \ && make -j$(nproc) \