fix django's container termination
-
use
CMD ["run-allgo"]so that the run-allgo command is executed directly (whereasCMD run-allgolaunches it inside a shell which would receive the termination signal in place of django) -
use
SIGINTinstead ofSIGTERMfor 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