Spaces:
Runtime error
Runtime error
| const express = require('express'); | |
| const app = express(); | |
| const port = process.env.PORT || 3000; | |
| app.get('/', (req, res) => { | |
| res.send('Hello, Node.js app running in Docker!'); | |
| }); | |
| app.listen(port, () => { | |
| console.log(`App is running on http://localhost:${port}`); | |
| }); |