You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
When building container and setting start command as CMD [ "node", "./build/server.js" ]
Container does not die gracefully with SIGINT since SIGINT is sent to process, which just ignores it
Fix is to add process.on('SIGINT') yourself to some part of application, server.ts for example
Workaround is to chop it into multiple pieces and adding SIGINT listener
// server.ts (workaround)constserver=newIgnitor(__dirname).httpServer()server.start().catch(console.error)// Without it process won't die in containerprocess.on('SIGINT',()=>{server.kill(10)})