New architecture, env vars for configs, Python 3.6
Many changes:
- New official image tags:
python3.6,python3.6-index,python.3.5,python3.5-index,python2.7andpython2.7-index. All the other images are deprecated in favor is this ones. - Python 3.6 is now the recommended default. Even the example projects for other versions were removed to discourage using older Python versions for new projects.
- Any of the older images that didn't have a Python version will show a deprecation warning and take some time to start. As soon the tag
latestwill point to Python 3.6 and the other tags will be removed. - There were several improvements in the bas image
tiangolo/uwsgi-nginxthat improved this image too. - By default, now there is no limit in the upload file size in Nginx. It can be configured in an environment variable.
- It's now possible to configure several things with environment variables:
- Serve
index.htmldirectly:STATIC_INDEX - Set the max upload file size:
NGINX_MAX_UPLOAD - Set a custom
uwsgi.inifile (that allows using a custom directory different than/app):UWSGI_INI(using the ideas by @bercikr in #5 ). - Set a custom
./static/path:STATIC_PATH - Set a custom
/static/URL:STATIC_URL
- Serve
- As all this configurations are available as environment variables, the choices are a lot more simple. Actually, any new project would just need to use a
Dockerfilewith:
FROM tiangolo/uwsgi-nginx-flask:python3.6
COPY ./app /appand then customize with environment variables.