Update Dockerfile

This commit is contained in:
MarkusMcNugen 2018-02-11 20:40:54 -05:00 committed by GitHub
parent a039271599
commit 603034c433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ VOLUME /config
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community/" >> /etc/apk/repositories \ RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community/" >> /etc/apk/repositories \
&& echo "http://dl-4.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories \ && echo "http://dl-4.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories \
&& apk add --update bash openvpn iptables shadow apk-tools boost-system boost-thread ca-certificates && apk add --update bash openvpn iptables shadow apk-tools boost-system boost-thread ca-certificates unrar
RUN usermod -u 99 nobody RUN usermod -u 99 nobody
@ -22,6 +22,7 @@ RUN buildDeps=" \
cmake \ cmake \
file \ file \
g++ \ g++ \
git \
geoip-dev \ geoip-dev \
gnutls-dev \ gnutls-dev \
libtool \ libtool \
@ -50,12 +51,12 @@ RUN buildDeps=" \
&& ./autotool.sh \ && ./autotool.sh \
&& export LDFLAGS=-L/opt/local/lib \ && export LDFLAGS=-L/opt/local/lib \
&& export CXXFLAGS=-I/opt/local/include \ && export CXXFLAGS=-I/opt/local/include \
&& ./configure --disable-debug \ && ./configure --disable-debug --enable-encryption --prefix=/usr \
&& make install \ && make install \
&& cd /usr/src/qbittorrent/ \ && cd /usr/src/qbittorrent/ \
&& ./configure --disable-gui \ && ./configure --disable-gui --prefix=/usr \
&& make -j$(nproc) \ && make -j$(nproc) \
&& make && make install \ && make install \
&& cd / \ && cd / \
&& rm -rf /usr/src/libtorrent \ && rm -rf /usr/src/libtorrent \
&& rm -rf /usr/src/qbittorrent \ && rm -rf /usr/src/qbittorrent \