Commit c9938e1
committed
Optimize Docker container shutdown speed
- Add signal handling to entrypoint.sh for faster container shutdown
- Use 'nginx -s stop' for immediate termination instead of graceful shutdown
- Trap SIGTERM/SIGINT signals to respond quickly to Docker stop commands1 parent ef8030d commit c9938e1
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
6 | 16 | | |
7 | 17 | | |
0 commit comments