From c839351b6aa6076bbe8d5c6910fa559300cdf851 Mon Sep 17 00:00:00 2001 From: DDSDerek <108336573+DDSDerek@users.noreply.github.com> Date: Sat, 12 Aug 2023 22:20:35 +0800 Subject: [PATCH 1/2] feat: add dumb-init package --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 3dd96fe7..97414b5e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,6 +46,7 @@ RUN apt-get update \ wget \ curl \ busybox \ + dumb-init \ && \ if [ "$(uname -m)" = "x86_64" ]; \ then ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1; \ From faaa30914b0e9bb0ffc71fe3feaf4eedb302143e Mon Sep 17 00:00:00 2001 From: DDSDerek <108336573+DDSDerek@users.noreply.github.com> Date: Sat, 12 Aug 2023 22:21:08 +0800 Subject: [PATCH 2/2] fix: https://github.com/jxxghp/MoviePilot/issues/83 --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 96559515..73337dc7 100644 --- a/start.sh +++ b/start.sh @@ -20,4 +20,4 @@ nginx # 设置后端服务权限掩码 umask ${UMASK} # 启动后端服务 -exec gosu moviepilot:moviepilot python3 app/main.py +exec dumb-init gosu moviepilot:moviepilot python3 app/main.py