Improve dockerfile shutdown
By execing python3 rather than running it as a child of /bin/sh shutdown becomes a lot faster because then the SIGTERM gets seen by the python process; when /bin/sh is the CMD and is signalled it doesn't pass the signal on to its child python process, and Docker then waits for 10 seconds before sending a SIGKILL.
Please register or sign in to comment