Image with uWSGI and Nginx for Flask apps in Python running in a single container. Docker image with uWSGI and Nginx for Flask web applications in Python running in a single container. Optionally using Alpine Linux. This Docker image allows you to create Flask web applications in Python that run with uWSGI and Nginx in a single container. The combination of uWSGI with Nginx is a common way to deploy Python Flask web applications. It is widely used in the industry and would give you decent performance. If you are starting a new project, you might benefit from a newer and faster framework based on ASGI instead of WSGI (Flask and Django are WSGI-based). Also, if you want to use new technologies like WebSockets it would be easier (and possible) with a newer framework based on ASGI, like FastAPI or Starlette. As the standard ASGI was designed to be able to handle asynchronous code like the one needed for WebSockets.
Features
- Docker image with uWSGI and Nginx for Flask web applications in Python 3.6
- This Docker image allows you to create Flask web applications in Python that run with uWSGI and Nginx in a single container
- The combination of uWSGI with Nginx is a common way to deploy Python Flask web applications. It is widely used in the industry and would give you decent performance
- There is also an Alpine version
- If you are starting a new project, you might benefit from a newer and faster framework based on ASGI instead of WSGI
- FastAPI, or Starlette, would give you about 800% (8x) the performance achievable with Flask using this image