mirror of
https://github.com/gshang2017/docker.git
synced 2025-08-16 15:02:49 +00:00
45 lines
1.7 KiB
Docker
45 lines
1.7 KiB
Docker
#compiling qB
|
|
FROM ghcr.io/gshang2017/libtorrent:1 AS compilingqb
|
|
|
|
ARG QBITTORRENT_VER=5.1.0
|
|
|
|
RUN apk add --no-cache ca-certificates cmake build-base boost-dev wget samurai qt6-qttools-dev \
|
|
&& mkdir -p /tmp/qbbuild \
|
|
&& mkdir /qbittorrent \
|
|
&& cp --parents /usr/lib/libtorrent-rasterbar.so.10 /qbittorrent \
|
|
#qBittorrent
|
|
&& wget -O /tmp/qbbuild/qbittorrent.zip https://github.com/qbittorrent/qBittorrent/archive/release-${QBITTORRENT_VER}.zip \
|
|
&& unzip -q /tmp/qbbuild/qbittorrent.zip -d /tmp/qbbuild \
|
|
&& cd /tmp/qbbuild/qBittorrent-release* \
|
|
&& cmake -B build-nox -G Ninja -DCMAKE_BUILD_TYPE=Release -DSTACKTRACE=OFF -DQT6=ON -DGUI=OFF \
|
|
&& cmake --build build-nox -j $(nproc) \
|
|
&& cmake --install build-nox \
|
|
&& strip /usr/local/bin/qbittorrent-nox \
|
|
&& cp --parents /usr/local/bin/qbittorrent-nox /qbittorrent
|
|
|
|
|
|
#compiling qB2
|
|
FROM ghcr.io/gshang2017/libtorrent:2 AS compilingqb2
|
|
|
|
COPY --from=compilingqb /tmp/qbbuild/qbittorrent.zip /tmp/qbbuild/qbittorrent.zip
|
|
|
|
RUN apk add --no-cache ca-certificates cmake build-base boost-dev wget samurai qt6-qttools-dev \
|
|
&& mkdir /qbittorrent \
|
|
&& cp --parents /usr/lib/libtorrent-rasterbar.so.2.0 /qbittorrent \
|
|
#qBittorrent
|
|
&& unzip -q /tmp/qbbuild/qbittorrent.zip -d /tmp/qbbuild \
|
|
&& cd /tmp/qbbuild/qBittorrent-release* \
|
|
&& cmake -B build-nox -G Ninja -DCMAKE_BUILD_TYPE=Release -DSTACKTRACE=OFF -DQT6=ON -DGUI=OFF \
|
|
&& cmake --build build-nox -j $(nproc) \
|
|
&& cmake --install build-nox \
|
|
&& strip /usr/local/bin/qbittorrent-nox \
|
|
&& mv /usr/local/bin/qbittorrent-nox /usr/local/bin/qbittorrent2-nox \
|
|
&& cp --parents /usr/local/bin/qbittorrent2-nox /qbittorrent
|
|
|
|
|
|
# docker qB-nox qBee-nox
|
|
FROM alpine:3.21
|
|
|
|
COPY --from=compilingqb --chmod=755 /qbittorrent /qbittorrent
|
|
COPY --from=compilingqb2 --chmod=755 /qbittorrent /qbittorrent
|