-
Notifications
You must be signed in to change notification settings - Fork 2
/
All.Legacy.Dockerfile
76 lines (61 loc) · 1.86 KB
/
All.Legacy.Dockerfile
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
66
67
68
69
70
71
72
73
74
75
76
########################################################
#
# Builds qBittorrent v4.1.0 thru v4.2.5
#
########################################################
FROM ubuntu:22.04 AS qbittorrent-base
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install --no-install-recommends -y \
automake \
build-essential \
ca-certificates \
cmake \
curl \
git \
libssl-dev \
libgeoip-dev\
libtool \
libboost-dev \
libboost-system-dev \
libboost-chrono-dev \
libboost-random-dev \
ninja-build \
pkg-config \
qtbase5-dev \
qttools5-dev \
libqt5svg5-dev \
zlib1g-dev
ENV BASE_PATH="/build"
COPY patches/* ${BASE_PATH}/patches/
COPY scripts/* ${BASE_PATH}/scripts/
ARG LIBTORRENT_VERSION
RUN ${BASE_PATH}/scripts/install_libtorrent_legacy.sh "${BASE_PATH}" "${LIBTORRENT_VERSION}"
FROM qbittorrent-base AS qbittorrent-build
ARG QBT_VERSION
ARG QBT_BUILD_TYPE="release"
RUN ${BASE_PATH}/scripts/install_qbittorrent_legacy.sh "${BASE_PATH}" "${QBT_VERSION}" "${QBT_BUILD_TYPE}"
FROM ubuntu:22.04 AS release
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install --no-install-recommends -y \
doas \
python3 \
qtbase5-dev \
tini && \
addgroup qbtuser --force-badname && \
adduser \
--quiet \
--system \
--disabled-password \
--force-badname \
--no-create-home \
--shell /usr/sbin/nologin \
-u 1000 \
qbtuser && \
echo "permit nopass :root" >> "/etc/doas.conf"
COPY --from=qbittorrent-build /usr/local/lib/libtorrent-rasterbar* /usr/local/lib/
COPY --from=qbittorrent-build /usr/local/bin/qbittorrent-nox /usr/bin/qbittorrent-nox
COPY --from=qbittorrent-build /build_commit.* /
COPY assets/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/usr/bin/tini", "-g", "--", "/entrypoint.sh"]