summaryrefslogtreecommitdiff
path: root/test/compose/env_and_volume/write/app.py
blob: b6ad6fe63e138851977ab28aa036f833f5707752 (plain)
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')