Some checks failed
homelab-k8s-services/tictactoe/pipeline/head There was a failure building this commit
- Express app serving vanilla JS 2-player TicTacToe game - Dockerfile (multi-stage node:18-slim) - Jenkinsfile (K8s pod: test → Harbor push → Helm bump → Gitea push) - Helm chart v1.0.0 with HTTPRoute for tictactoe.fireflylab.local Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
19 lines
400 B
JavaScript
19 lines
400 B
JavaScript
const express = require('express');
|
|
const path = require('path');
|
|
const app = express();
|
|
const port = process.env.PORT || 3000;
|
|
|
|
app.use(express.static(path.join(__dirname, 'public')));
|
|
|
|
app.get('/health', (req, res) => {
|
|
res.status(200).send('OK');
|
|
});
|
|
|
|
if (require.main === module) {
|
|
app.listen(port, () => {
|
|
console.log(`TicTacToe running on port ${port}`);
|
|
});
|
|
}
|
|
|
|
module.exports = app;
|