Designed for rapid development of Python web applications
docker run -d -v /path/to/project:/home/app -p 80:80 jrelva/uwsgi_python
uWSGI will automatically reload the Python application after a change is detected
--install - Installs pip and apt packages
--execute - Executes the application
The home directory where applications are served is /home/app.
Under this directory your application should have this folder structure
api.py - Your main WSGI Python application
* static/ - Your static content such as .html, .js, .css files
* index.html
* js/
* css/
* requirements.apt - apt-get requirements, separated by newline
* requirements.pip - pip requirements, separated by newlineTo enable error logging of application errors to the container log you should add the PROPAGATE_EXCEPTIONS parameter to the Flask configuration.
from flask import Flask
app = Flask(__name__)
app.config['PROPAGATE_EXCEPTIONS'] = True
Content type
Image
Digest
sha256:a5b4aa5ca…
Size
326.5 MB
Last updated
over 10 years ago
docker pull jrelva/uwsgi_python