Files
healthcheck-container/app.py
2025-02-16 16:11:13 +01:00

18 lines
342 B
Python

from flask import Flask, request, jsonify
app = Flask(__name__)
@app.route('/alive', methods=['GET'])
def get_healthcheck():
response = {
"alive": True
}
return jsonify(response)
@app.route('/')
def hello_world():
return 'Health check application.'
if __name__ == "__main__":
app.run(host="0.0.0.0", port=9999)