Use dumb-init for sunshine-run wrapper
This commit is contained in:
@@ -482,6 +482,15 @@ RUN \
|
||||
&& \
|
||||
echo
|
||||
|
||||
# Various other tools
|
||||
ARG DUMB_INIT_VERSION=1.2.5
|
||||
RUN \
|
||||
echo "**** Install dumb-init ****" \
|
||||
&& wget -O /usr/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_x86_64 \
|
||||
&& chmod +x /usr/bin/dumb-init \
|
||||
&& \
|
||||
echo
|
||||
|
||||
# Add FS overlay
|
||||
COPY overlay /
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ trap _term EXIT
|
||||
|
||||
|
||||
# RUN CHILD PROCESS
|
||||
"${@}" &
|
||||
/usr/bin/dumb-init "${@}" &
|
||||
proc_pid=$!
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user