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; \ 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