zsyh / uwsgi-flask-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zsyh/uwsgi-flask

Supported tags and respective Dockerfile links

see also

zsyh/uwsgi

uwsgi

Docker image with uWSGI for web applications in Python 2.7 (as Flask) in a single container.

Description

This Docker image allows you to create Python web applications that run with uWSGI in a single container.

This image is modified from tiangolo/uwsgi-nginx and tiangolo/uwsgi-nginx-flask, it uncouples uwsgi and nginx.

GitHub repo: https://github.com/zsyh/uwsgi-flask-docker

Docker Hub image: https://hub.docker.com/r/zsyh/uwsgi-flask

How to use

  • You needn't clone the GitHub repo. You can use it as a base image for other images, using this in your Dockerfile:
FROM zsyh/uwsgi-flask:python2.7

# Your Dockerfile code...
  • By default it will try to find a uWSGI config file in /app/uwsgi.ini.
  • That uwsgi.ini file will make it try to run a Python file in /app/main.py.
  • uwsgi socket port is 9000.

License

This project is licensed under the terms of the Apache license.

About

License:Apache License 2.0


Languages

Language:Python 81.7%Language:Shell 18.3%