fix: kill zombie (#1793)

This commit is contained in:
逆流而上 2023-12-28 09:53:29 +08:00 committed by GitHub
parent a783c876cc
commit dd6ba6fde7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,12 @@ ENV RELEASE_DESC=${RELEASE_DESC}
COPY rainbond-monitor /run/rainbond-monitor
RUN if [ $(arch) = "arm64" ] || [ $(arch) = "aarch64" ]; then \
wget https://pkg.goodrain.com/pkg/tini/v0.19.0/tini-arm -O /bin/tini && chmod +x /bin/tini; \
else \
wget https://pkg.goodrain.com/pkg/tini/v0.19.0/tini -O /bin/tini && chmod +x /bin/tini; \
fi
ADD entrypoint.sh /run/entrypoint.sh
ENTRYPOINT ["/run/entrypoint.sh"]

View File

@ -4,5 +4,5 @@ if [ "$1" = "bash" ];then
elif [ "$1" = "version" ];then
/run/rainbond-monitor version
else
exec /run/rainbond-monitor $@
exec /bin/tini -- /run/rainbond-monitor $@
fi