dockerfiles/uwsgi-nginx/app/main.py

11 lines
359 B
Python
Raw Normal View History

2021-06-08 20:45:46 +08:00
import sys
def application(env, start_response):
version = "{}.{}".format(sys.version_info.major, sys.version_info.minor)
start_response("200 OK", [("Content-Type", "text/plain")])
message = "Hello World from a default Nginx uWSGI Python {} app in a Docker container (default)".format(
version
)
return [message.encode("utf-8")]