feat: local compilation Qbittorrent-Nox
This commit is contained in:
parent
7eb3323891
commit
17e7c7a7fa
2 changed files with 19 additions and 5 deletions
22
Dockerfile
22
Dockerfile
|
|
@ -1,10 +1,24 @@
|
||||||
FROM alpine:edge
|
FROM alpine:edge as builder
|
||||||
|
|
||||||
|
RUN apk add --no-cache boost-dev build-base clang qt5-qtbase-dev qt5-qttools-dev libtorrent-rasterbar-dev tar
|
||||||
|
|
||||||
|
WORKDIR /workspace
|
||||||
|
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
ADD https://github.com/qbittorrent/qBittorrent/archive/refs/tags/release-${VERSION}.tar.gz /workspace
|
||||||
-X http://dl-cdn.alpinelinux.org/alpine/edge/testing \
|
|
||||||
qbittorrent-nox=${VERSION}
|
RUN tar -zxf release-${VERSION}.tar.gz -C . \
|
||||||
|
&& mv qBittorrent-release-${VERSION}/* . \
|
||||||
|
&& ./configure --prefix=/workspace --disable-gui \
|
||||||
|
&& CC=clang make \
|
||||||
|
&& make install
|
||||||
|
|
||||||
|
FROM alpine:edge
|
||||||
|
|
||||||
|
RUN apk add --no-cache busybox libcrypto3 libgcc libstdc++ libtorrent-rasterbar musl qt5-qtbase zlib
|
||||||
|
|
||||||
|
COPY --from=builder /workspace/bin/qbittorrent-nox /usr/bin/qbittorrent-nox
|
||||||
|
|
||||||
ADD --chown=1000:100 root /
|
ADD --chown=1000:100 root /
|
||||||
|
|
||||||
|
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -1,6 +1,6 @@
|
||||||
CMD = /usr/bin/docker
|
CMD = /usr/bin/docker
|
||||||
IMAGE = mogeko/qbittorrent
|
IMAGE = mogeko/qbittorrent
|
||||||
VERSION = 4.3.8-r0
|
VERSION = 4.3.8
|
||||||
PORT = 8080
|
PORT = 8080
|
||||||
CONF_DIR = $(shell pwd)/example/config
|
CONF_DIR = $(shell pwd)/example/config
|
||||||
DL_DIR = $(shell pwd)/example/data
|
DL_DIR = $(shell pwd)/example/data
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue