| 1 | import express from "express"; |
| 2 | |
| 3 | const app = express(); |
| 4 | const started = new Date().toISOString(); |
| 5 | |
| 6 | app.get("/", (_req, res) => { |
| 7 | res.json({ ok: true, app: "container-check", started, node: process.version }); |
| 8 | }); |
| 9 | |
| 10 | const port = Number(process.env.PORT) || 3000; |
| 11 | app.listen(port, "0.0.0.0", () => console.log(`listening on ${port}`)); |