fix django's container termination
-
use
CMD ["run-allgo"]
so that the run-allgo command is executed directly (whereasCMD run-allgo
launches it inside a shell which would receive the termination signal in place of django) -
use
SIGINT
instead ofSIGTERM
for stopping the container (because the django server ignores SIGTERM)
With these changes, stopping or restarting the container
(eg: fig restart dev-django
) will be immediate