1 2 3 4 5 6 7 8 9 10 11 12 13
from flask import Flask import os app = Flask(__name__) @app.route('/') def hello(): f = open("/data/message", "w") f.write(os.getenv("PODMAN_MSG")) f.close() return "done" if __name__ == '__main__': app.run(host='0.0.0.0')