From 5c242b5857fa32f48c0a6979a5721cd0a82ddc2b Mon Sep 17 00:00:00 2001 From: MarkusMcNugen Date: Sun, 11 Feb 2018 20:43:13 -0500 Subject: [PATCH] Update Dockerfile --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 910017d..5a2de88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,9 @@ RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community/" >> /etc/apk/reposi RUN usermod -u 99 nobody +# copy patches +COPY patches/ /tmp/patches + RUN buildDeps=" \ automake \ autoconf \ @@ -53,7 +56,8 @@ RUN buildDeps=" \ && export CXXFLAGS=-I/opt/local/include \ && ./configure --disable-debug --enable-encryption --prefix=/usr \ && make install \ - && cd /usr/src/qbittorrent/ \ + && cd /usr/src/qbittorrent/src/app \ + && patch -i /tmp/patches/main.patch && \ && ./configure --disable-gui --prefix=/usr \ && make -j$(nproc) \ && make install \ @@ -69,6 +73,7 @@ RUN buildDeps=" \ && apk add --virtual .run-deps $runDeps gnutls-utils iptables \ && apk del .build-deps \ && rm -rf /var/cache/apk/* + && rm -rf /tmp/* # Add configuration and scripts ADD openvpn/ /etc/openvpn/