d740a015bd | ||
---|---|---|
Dockerfile | ||
README.md | ||
default | ||
init-virtualenv | ||
nginx.conf | ||
pythonapp.conf | ||
pythonapp.ini | ||
start | ||
supervisor.conf |
README.md
Docker Pythonapp
For running uWSGI python3 app
Usage:
- build image:
docker build -t pyapp .
- build a python3 app. for example, in a folder called testapp
testapp/app.py
is the main wsgi file. varapplication
must be the wsgi app instance.- testapp/requirements.txt is used by pip to install required modules
- app/static will be mapped to http://server.address/static/
- run container: docker run -p 80:80 -v /localpath/to/appdir/:/home/python/app/ pythonapp
Example app: