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
No related branches found
No related tags found
No related merge requests found
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
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment