diff --git a/daemon/Dockerfile b/daemon/Dockerfile index c90beab11b78398c804963a12b039ff759a4c618..39cb9bc4ff0f4145dcbe72f3ed059c0407cc5bd5 100644 --- a/daemon/Dockerfile +++ b/daemon/Dockerfile @@ -1,10 +1,8 @@ FROM alpine:3.18 # hadolint ignore=DL3018 -RUN apk add --update --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \ - gosu \ - && \ - apk add --update --no-cache \ +RUN apk add --update --no-cache \ python3 \ + su-exec \ transmission-daemon \ && \ mkdir -m 777 /run/transmission diff --git a/daemon/entrypoint b/daemon/entrypoint index 6a0a26a7b708cb2b545f5b052f33f69c17e6b440..bb26dcceddeb52aab1f79b477e3ad7d201bccc74 100755 --- a/daemon/entrypoint +++ b/daemon/entrypoint @@ -11,7 +11,7 @@ then uid="$(stat ./Downloads -c '%u')" gid="$(stat ./Downloads -c '%g')" chown "$uid:$gid" ./ - eval "exec gosu $uid:$gid $*" + eval "exec su-exec $uid:$gid $*" else eval "exec $*" fi