-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile-Compiled-NEEDS_EDITING!
61 lines (53 loc) · 2.56 KB
/
Dockerfile-Compiled-NEEDS_EDITING!
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
FROM ubuntu:xenial
MAINTAINER TheCreatorzOne
RUN groupadd -g 1000 qbittorrent && \
useradd -g 1000 -u 1000 -d /home/qbittorrent qbittorrent && \
su qbittorrent && \
apt-get update -y && \
apt-get install -y build-essential && \
apt-get install -y pkg-config && \
apt-get install -y automake && \
apt-get install -y libtool && \
apt-get install -y git && \
apt-get install -y libboost-dev && \
apt-get install -y libboost-system-dev && \
apt-get install -y libboost-chrono-dev && \
apt-get install -y libboost-random-dev && \
apt-get install -y libssl-dev && \
apt-get install -y libgeoip-dev && \
apt-get install -y qtbase5-dev && \
apt-get install -y qttools5-dev-tools && \
apt-get install -y libqt5svg5-dev && \
apt-get install -y python3 && \
apt-get install -y libtorrent-rasterbar-dev && \
apt-get install -y unrar && \
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 && \
git clone https://github.com/qbittorrent/qBittorrent && cd qBittorrent && \
./configure --disable-gui && \
make && make install && \
mkdir -p /home/qbittorrent/.config/qBittorrent && \
mkdir -p /home/qbittorrent/.local/share/data/qBittorrent && \
mkdir -p /home/qbittorrent/Downloads && \
mkdir -p /home/qbittorrent/Downloads-temp && \
ln -s /home/qbittorrent/.config/qBittorrent /config && \
ln -s /home/qbittorrent/.local/share/data/qBittorrent /torrents && \
ln -s /home/qbittorrent/Downloads /qbit-downloads && \
ln -s /home/qbittorrent/Downloads-temp /qbit-downloads-temp && \
chown -R 1000:1000 /home/qbittorrent/ && \
chmod -R 6775 /home/qbittorrent/ && \
chmod -R 0775 /home/qbittorrent/.config/ /home/qbittorrent/.local/ /home/qbittorrent/Downloads/ /home/qbittorrent/Downloads-temp/ && \
chmod -R g+s /home/qbittorrent/.config/ /home/qbittorrent/.local/ /home/qbittorrent/Downloads/ /home/qbittorrent/Downloads-temp/ && \
su qbittorrent -s /bin/sh -c 'qbittorrent-nox -v'
ADD qBittorrent.conf /default/qBittorrent.conf
ADD entrypoint.sh /entrypoint.sh
RUN chown -R 1000:1000 /entrypoint.sh && \
chmod -R 0775 /entrypoint.sh
VOLUME ["/config", "/torrents", "/qbit-downloads", "qbit-downloads-temp"]
USER 1000:1000
EXPOSE 8080 6881
ENTRYPOINT ["/entrypoint.sh"]
CMD ["qbittorrent-nox"]