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
70fcfdb4af
commit
052e7aad68
12
Dockerfile
12
Dockerfile
@ -59,13 +59,11 @@ 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!.*/!!') \
|
||||||
RUN curl -SL "https://github.com/arvidn/libtorrent/archive/$LIBTOR_VERSION.tar.gz" -o libtor.tar.gz
|
&& curl -SL "https://github.com/arvidn/libtorrent/archive/$LIBTOR_VERSION.tar.gz" \
|
||||||
RUN mkdir -p /usr/src/libtorrent
|
&& mkdir -p /usr/src/libtorrent \
|
||||||
RUN gzip -d libtor.tar.gz
|
&& tar -xzf "$LIBTOR_VERSION.tar.gz" -C /usr/src/libtorrent --strip-components=1 \
|
||||||
RUN tar -xf libtor.tar -C /usr/src/libtorrent --strip-components=1
|
&& rm "$LIBTOR_VERSION.tar.gz"
|
||||||
RUN rm libtor.tar*
|
|
||||||
RUN rm libtor.tar.gz*
|
|
||||||
WORKDIR /usr/src/libtorrent/
|
WORKDIR /usr/src/libtorrent/
|
||||||
RUN ./autotool.sh
|
RUN ./autotool.sh
|
||||||
RUN export LDFLAGS=-L/opt/local/lib
|
RUN export LDFLAGS=-L/opt/local/lib
|
||||||
|
Loading…
Reference in New Issue
Block a user