mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-14 22:55:11 +00:00
Update Dockerfile
This commit is contained in:
parent
5e216ef324
commit
2d8bfc3566
52
Dockerfile
52
Dockerfile
@ -58,32 +58,32 @@ RUN buildDeps=" \
|
|||||||
set -x \
|
set -x \
|
||||||
&& apk add --update --virtual .build-deps $buildDeps
|
&& apk add --update --virtual .build-deps $buildDeps
|
||||||
|
|
||||||
RUN export LIBTOR_VERSION=$(curl --silent "https://github.com/arvidn/libtorrent/tags" 2>&1 | grep -m 1 'libtorrent-' | sed -e 's~^[ \t]*~~;s~[ \t]*$~~' | sed -n 's/.*href="\([^"]*\).*/\1/p' | sed 's!.*/!!') \
|
RUN export LIBTOR_VERSION=$(curl --silent "https://github.com/arvidn/libtorrent/tags" 2>&1 | grep -m 1 'libtorrent-' | sed -e 's~^[t]*~~;s~[t]*$~~' | sed -n 's/.*href="\([^"]*\).*/\1/p' | sed 's!.*/!!')
|
||||||
&& curl -L "https://github.com/arvidn/libtorrent/archive/$LIBTOR_VERSION.tar.gz" -o libtor.tar.gz \
|
RUN curl -L "https://github.com/arvidn/libtorrent/archive/$LIBTOR_VERSION.tar.gz" -o libtor.tar.gz
|
||||||
&& mkdir -p /usr/src/libtorrent \
|
RUN mkdir -p /usr/src/libtorrent
|
||||||
&& tar -xzf libtor.tar.gz -C /usr/src/libtorrent --strip-components=1 \
|
RUN tar -xzf libtor.tar.gz -C /usr/src/libtorrent --strip-components=1
|
||||||
&& rm libtor.tar.gz* \
|
RUN rm libtor.tar.gz*
|
||||||
&& cd /usr/src/libtorrent/ \
|
RUN cd /usr/src/libtorrent/
|
||||||
&& ./autotool.sh \
|
RUN ./autotool.sh
|
||||||
&& export LDFLAGS=-L/opt/local/lib \
|
RUN export LDFLAGS=-L/opt/local/lib
|
||||||
&& export CXXFLAGS=-I/opt/local/include \
|
RUN export CXXFLAGS=-I/opt/local/include
|
||||||
&& ./configure --disable-debug --enable-encryption --prefix=/usr \
|
RUN ./configure --disable-debug --enable-encryption --prefix=/usr
|
||||||
&& make -j$(nproc) \
|
RUN make -j$(nproc)
|
||||||
&& make install \
|
RUN 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 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 \
|
RUN curl -L "https://github.com/qbittorrent/qBittorrent/archive/$QBIT_VERSION.tar.gz" -o qbittorrent.tar.gz
|
||||||
&& mkdir -p /usr/src/qbittorrent \
|
RUN mkdir -p /usr/src/qbittorrent
|
||||||
&& tar -xzf qbittorrent.tar.gz -C /usr/src/qbittorrent --strip-components=1 \
|
RUN tar -xzf qbittorrent.tar.gz -C /usr/src/qbittorrent --strip-components=1
|
||||||
&& rm qbittorrent.tar.gz* \
|
RUN rm qbittorrent.tar.gz*
|
||||||
&& cd /usr/src/qbittorrent/src/app \
|
RUN cd /usr/src/qbittorrent/src/app
|
||||||
&& patch -i /tmp/patches/main.patch \
|
RUN patch -i /tmp/patches/main.patch
|
||||||
&& cd /usr/src/qbittorrent/ \
|
RUN cd /usr/src/qbittorrent/
|
||||||
&& ./configure --disable-gui --prefix=/usr \
|
RUN ./configure --disable-gui --prefix=/usr
|
||||||
&& make -j$(nproc) \
|
RUN make -j$(nproc)
|
||||||
&& make install \
|
RUN make install
|
||||||
&& cd / \
|
RUN cd /
|
||||||
&& rm -rf /usr/src/libtorrent \
|
RUN rm -rf /usr/src/libtorrent
|
||||||
&& rm -rf /usr/src/qbittorrent
|
RUN rm -rf /usr/src/qbittorrent
|
||||||
|
|
||||||
RUN runDeps="$( \
|
RUN runDeps="$( \
|
||||||
scanelf --needed --nobanner /usr/local/bin/qbittorrent-nox \
|
scanelf --needed --nobanner /usr/local/bin/qbittorrent-nox \
|
||||||
|
Loading…
Reference in New Issue
Block a user