Bugfix/Update worker docker (#4643)

update worker docker
This commit is contained in:
Henry Heng
2025-06-12 17:25:43 +01:00
committed by GitHub
parent 306b6fbb31
commit 8ba1a09077
12 changed files with 687 additions and 12 deletions
+13
View File
@@ -0,0 +1,13 @@
const express = require('express')
const app = express()
const port = process.env.WORKER_PORT || 5566
app.get('/healthz', (req, res) => {
res.status(200).send('OK')
})
app.listen(port, () => {
// eslint-disable-next-line no-console
console.log(`Healthcheck server listening on port ${port}`)
})
+13
View File
@@ -0,0 +1,13 @@
{
"name": "flowise-worker-healthcheck",
"version": "1.0.0",
"description": "Simple healthcheck server for Flowise worker",
"main": "healthcheck.js",
"private": true,
"scripts": {
"start": "node healthcheck.js"
},
"dependencies": {
"express": "^4.19.2"
}
}