forked from DDS-Derek/qBittorrent-Enhanced-Edition-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (40 loc) · 1.12 KB
/
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
FROM alpine:edge AS build
ARG QBEE_TAG
ARG FILE_NAME
COPY root /default
RUN apk --no-cache add curl unzip
RUN \
curl -L -o "/tmp/qbittorrentee.zip" "https://github.com/YuCat-OVO/qBittorrent-Enhanced-Edition/releases/download/release-${QBEE_TAG}/${FILE_NAME}" && \
unzip "/tmp/qbittorrentee.zip" -d "/tmp" && \
mkdir -p "/default/usr/bin" && \
mv "/tmp/qbittorrent-nox" "/default/usr/bin/qbittorrent-nox"
FROM alpine:20240606
COPY --from=build /default /
ENV QBT_PROFILE=/home/qbittorrent \
TZ=Asia/Shanghai \
PUID=1000 \
PGID=100 \
WEBUI_PORT=8080 \
BT_PORT=34567 \
QB_USERNAME=admin \
QB_PASSWORD=adminadmin \
LANG=zh_CN.UTF-8 \
SHELL=/bin/bash \
PS1="\u@\h:\w \$ "
RUN \
sed -i 's/dl-cdn.alpinelinux.org/mirrors.bfsu.edu.cn/g' /etc/apk/repositories && \
apk add --no-cache \
bash \
busybox-suid \
curl \
jq \
openssl \
python3 \
shadow \
su-exec \
tini \
tzdata && \
useradd -l qbittorrent -u ${PUID} -U -m -d ${QBT_PROFILE} -s /sbin/nologin
WORKDIR /data
VOLUME ["/data"]
ENTRYPOINT ["tini", "-g", "--", "entrypoint.sh"]