feat: add health check and heartbeat endpoint to Docker setup
Build and Push Docker Image / build (push) Successful in 1m27s

This commit is contained in:
kobim committed 2025-02-15 14:12:34 +01:00
1 parent 0518d1ba48
commit dc08ba41ca
2 files changed
+13 -3

No files matched your search

+8 -3
View File
@@ -24,6 +24,11 @@ class Handler(BaseHTTPRequestHandler):
self.wfile.write(b'404 Not Found')
def do_GET(self):
self.send_response(404)
self.end_headers()
self.wfile.write(b'404 Not Found')
if self.path == '/heartbeat':
self.send_response(200)
self.end_headers()
self.wfile.write(b'Heartbeat OK')
else:
self.send_response(404)
self.end_headers()
self.wfile.write(b'404 Not Found')