-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-old
65 lines (48 loc) · 1.95 KB
/
Dockerfile-old
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM ubuntu:xenial
MAINTAINER TheCreatorzOne
RUN apt-get -y update && \
apt-get -y install build-essential && \
apt-get -y install pkg-config && \
apt-get -y install automake && \
apt-get -y install libtool && \
apt-get -y install git && \
apt-get -y install libboost-dev && \
apt-get -y install libboost-system-dev && \
apt-get -y install libboost-chrono-dev && \
apt-get -y install libboost-random-dev && \
apt-get -y install libssl-dev && \
apt-get -y install libgeoip-dev && \
apt-get -y install qtbase5-dev && \
apt-get -y install qttools5-dev-tools && \
apt-get -y install libqt5svg5-dev && \
apt-get -y install python3 && \
apt-get -y install libtorrent-rasterbar-dev && \
git clone https://github.com/arvidn/libtorrent.git && \
cd libtorrent && \
git checkout $(git tag | grep libtorrent-1_0_ | sort -t _ -n -k 3 | tail -n 1) && \
./autotool.sh && \
./configure --disable-debug --enable-encryption --with-libgeoip=system CXXFLAGS=-std=c++11 && \
make clean && make -j$(nproc) && \
make install
RUN git clone https://github.com/qbittorrent/qBittorrent && \
cd qBittorrent && \
./configure --disable-gui && \
make -j$(nproc) && \
make install
RUN addgroup --gid 1000 qbittorrent && \
adduser --uid 1000 --ingroup qbittorrent --home /qbittorrent --shell /bin/bash --disabled-password --gecos "" qbittorrent && \
mkdir -p /qbittorrent/.config/qBittorrent && \
mkdir -p /qbittorrent/.local/share/data/qBittorrent && \
mkdir /downloads && \
chmod go+rw -R /qBittorrent /downloads && \
ln -s /qbittorrent/.config/qBittorrent /config && \
ln -s /qbittorrent/.local/share/data/qBittorrent /torrents
COPY qBittorrent.conf /default/qBittorrent.conf
COPY entrypoint.sh /
VOLUME ["/config", "/torrents", "/downloads"]
USER qbittorrent
EXPOSE 8080 6881
WORKDIR /qbittorrent
ENV HOME=/qbittorrent
ENTRYPOINT ["/entrypoint.sh"]
CMD ["qbittorrent-nox"]