mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-01 19:28:05 +08:00
fix: kill zombie (#1793)
This commit is contained in:
parent
a783c876cc
commit
dd6ba6fde7
@ -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"]
|
@ -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
|
Loading…
Reference in New Issue
Block a user