-
-
Save Tenzer/bf8b018d823d0f5c4f291b464444c4cd to your computer and use it in GitHub Desktop.
uWSGI Python 3.12 reproduction case
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def application(environ, start_fn): | |
start_fn("200 OK", [("Content-Type", "text/plain")]) | |
return ["Hello World!\n"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.12.0 | |
RUN pip install pyuwsgi==2.0.23 | |
COPY app.py uwsgi.ini ./ | |
CMD uwsgi --ini uwsgi.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[uwsgi] | |
wsgi-file = app.py | |
http-socket = :8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment