- Added index.js: Simple HTTP server on port 3000 - Added package.json: NPM configuration - Added Dockerfile: Multi-stage Docker build - Added .dockerignore: Exclude unnecessary files from build Ready for Coolify deployment via CI/CD pipeline.
14 lines
377 B
JavaScript
14 lines
377 B
JavaScript
const http = require('http');
|
|
|
|
const PORT = process.env.PORT || 3000;
|
|
|
|
const server = http.createServer((req, res) => {
|
|
res.writeHead(200, { 'Content-Type': 'text/plain' });
|
|
res.end('Hello World from First Contact! 🚀\n');
|
|
});
|
|
|
|
server.listen(PORT, '0.0.0.0', () => {
|
|
console.log(`Server running on port ${PORT}`);
|
|
console.log(`First Contact application ready!`);
|
|
});
|