In current Dockerfile, supervisior is not running as pid 1 therefore, it is not able to receive signals sent to docker container. Due to this, there is no graceful shutdown.
To enable graceful shutdown, cmd of Dockerfile should be cmd exec /usr/bin/init instead of cmd /usr/bin/init