-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (36 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
44 lines (36 loc) · 1.16 KB
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
# syntax=docker/dockerfile:1
FROM docker.io/library/python:3.14-alpine3.23
ARG TARGETARCH
ARG QBARCH=${TARGETARCH/arm64/aarch64}
ARG QBARCH=${QBARCH/amd64/x86_64}
ARG VERSION
ENV QBT_CONFIRM_LEGAL_NOTICE=1 \
HOME="/config" \
XDG_CONFIG_HOME="/config" \
XDG_DATA_HOME="/config"
USER root
WORKDIR /app
RUN \
apk add --no-cache \
7zip \
bash \
ca-certificates \
catatonit \
coreutils \
curl \
jq \
nano \
tzdata \
&& \
mkdir -p /app \
&& LIBTORRENT=$(curl -sL "https://github.com/userdocs/qbittorrent-nox-static/releases/latest/download/dependency-version.json" | jq -r '.libtorrent_2_0') \
&& curl -fsSL -o /app/qbittorrent-nox "https://github.com/userdocs/qbittorrent-nox-static/releases/download/release-${VERSION}_v${LIBTORRENT}/${QBARCH}-qbittorrent-nox" \
&& chown -R root:root /app/qbittorrent-nox \
&& chmod -R 755 /app/qbittorrent-nox \
&& rm -rf /tmp/*
COPY . /
COPY --from=ghcr.io/linuxserver/unrar:latest /usr/bin/unrar-alpine /usr/bin/unrar
USER nobody:nogroup
WORKDIR /config
VOLUME ["/config"]
ENTRYPOINT ["/usr/bin/catatonit", "--", "/entrypoint.sh"]