Browse Source

use `sleep infinity` instead `sleep 1`

pull/4049/head
Sing Yu Chan 3 years ago committed by neil
parent
commit
c31027b284
  1. 3
      Dockerfile

3
Dockerfile

@ -65,7 +65,8 @@ RUN for verb in help \
RUN printf "%b" '#!'"/usr/bin/env sh\n \
if [ \"\$1\" = \"daemon\" ]; then \n \
trap \"echo stop && killall crond && exit 0\" SIGTERM SIGINT \n \
crond && while true; do sleep 1; done;\n \
crond && sleep infinity &\n \
wait \n \
else \n \
exec -- \"\$@\"\n \
fi" >/entry.sh && chmod +x /entry.sh

Loading…
Cancel
Save