mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-10 09:24:59 -06:00
Run qbt-nox as non-root
This is mainly to avoid downloaded files being owned by root which requires another one or two commands to change the file ownership.
This commit is contained in:
10
dist/docker/Dockerfile
vendored
10
dist/docker/Dockerfile
vendored
@@ -40,9 +40,17 @@ FROM alpine:latest
|
||||
|
||||
RUN \
|
||||
apk --no-cache add \
|
||||
doas \
|
||||
libtorrent-rasterbar \
|
||||
qt6-qtbase \
|
||||
tini
|
||||
tini && \
|
||||
adduser \
|
||||
-D \
|
||||
-H \
|
||||
-s /sbin/nologin \
|
||||
-u 1000 \
|
||||
qbtUser && \
|
||||
echo "permit nopass :root" >> "/etc/doas.d/doas.conf"
|
||||
|
||||
COPY --from=builder /usr/local/bin/qbittorrent-nox /usr/bin/qbittorrent-nox
|
||||
|
||||
|
||||
Reference in New Issue
Block a user