diff --git a/backend/Dockerfile b/backend/Dockerfile index d5864f2..5074e7d 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -6,5 +6,4 @@ RUN yarn install COPY src src/ COPY data data/ -RUN ls CMD ["node", "src/index.js"] diff --git a/backend/src/app.js b/backend/src/app.js index e9bcbc9..fbbe8b1 100644 --- a/backend/src/app.js +++ b/backend/src/app.js @@ -14,9 +14,8 @@ const io = socketIO(server); app.get('/state', (req, res) => res.send('
' + JSON.stringify(state) + '')); -process.on('SIGINT', function() { - process.exit(); -}); +process.on('SIGINT', () => process.exit()); +process.on('SIGTERM', () => process.exit()); module.exports = { app, server, io