Skip to content
Snippets Groups Projects
Commit a34b7792 authored by nimrod's avatar nimrod
Browse files

Daemon: Replace gosu with su-exec.

Pratically the same thing but is available in the regular Alpine repo
and is a bit smaller.
parent a0d9b235
Branches
No related tags found
No related merge requests found
FROM alpine:3.18 FROM alpine:3.18
# hadolint ignore=DL3018 # hadolint ignore=DL3018
RUN apk add --update --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \ RUN apk add --update --no-cache \
gosu \
&& \
apk add --update --no-cache \
python3 \ python3 \
su-exec \
transmission-daemon \ transmission-daemon \
&& \ && \
mkdir -m 777 /run/transmission mkdir -m 777 /run/transmission
......
...@@ -11,7 +11,7 @@ then ...@@ -11,7 +11,7 @@ then
uid="$(stat ./Downloads -c '%u')" uid="$(stat ./Downloads -c '%u')"
gid="$(stat ./Downloads -c '%g')" gid="$(stat ./Downloads -c '%g')"
chown "$uid:$gid" ./ chown "$uid:$gid" ./
eval "exec gosu $uid:$gid $*" eval "exec su-exec $uid:$gid $*"
else else
eval "exec $*" eval "exec $*"
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment