A very easy-to-use image maker to run Python WSGI applications
3.2K
A very easy-to-use image maker for Python WSGI applications to run in UWSGI.
Provide your own configuration either in the environment or by mounting a file at /etc/uwsgi/uwsgi.ini
docker run -p 8080:8080 kojiromike/uwsgi
Then open http://localhost:8080 in your browser.
If your application is on a Python repository, like pypi, just create an image like this:
docker build -t my_wsgi_app <<-DOCKERFILE
FROM kojiromike/uwsgi
RUN pip install my_wsgi_app
ENV UWSGI_MODULE=my_wsgi_app.module:function
DOCKERFILE
Separate the concerns of installing, configurating and running the WSGI engine from the concerns of installing the Python WSGI application to be run.
docker pull kojiromike/uwsgi:latest