fix: use exec to properly handle container signals (#501)

- Replace direct command execution with exec to make app PID 1
- Ensures proper signal propagation in container
- Follows container best practices for process management
This commit is contained in:
严浩 2024-12-01 00:47:41 +08:00 committed by GitHub
parent cb06a303b7
commit b994a52422
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
printf "nameserver 127.0.0.11\nnameserver 8.8.4.4\nnameserver 223.5.5.5\n" > /etc/resolv.conf printf "nameserver 127.0.0.11\nnameserver 8.8.4.4\nnameserver 223.5.5.5\n" > /etc/resolv.conf
/dashboard/app exec /dashboard/app