Update Dockerfile

This commit is contained in:
MarkusMcNugen 2021-03-23 02:14:05 -04:00 committed by GitHub
parent 6a355ded97
commit dc70c12aa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,10 +60,10 @@ RUN buildDeps=" \
&& 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 -SL "https://github.com/arvidn/libtorrent/archive/$LIBTOR_VERSION.tar.gz" \ && curl -SL "https://github.com/arvidn/libtorrent/archive/$LIBTOR_VERSION.tar.gz" -o tibtor.tar.gz \
&& mkdir -p /usr/src/libtorrent \ && mkdir -p /usr/src/libtorrent \
&& tar -xf "$LIBTOR_VERSION.tar.gz" -C /usr/src/libtorrent --strip-components=1 \ && tar -xf "tibtor.tar.gz" -C /usr/src/libtorrent --strip-components=1 \
&& rm "$LIBTOR_VERSION.tar.gz" && rm "tibtor.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