allow setting gunicorn default args via environment variables

This commit is contained in:
James Swineson
2019-07-12 22:20:59 +08:00
parent d8bb62900d
commit 7878ecda2a
2 changed files with 10 additions and 3 deletions

View File

@ -29,4 +29,4 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
ENV FLASK_APP=app/__init__.py
EXPOSE 80/tcp
ENTRYPOINT ["entrypoint.sh"]
CMD ["gunicorn", "-t", "120", "--workers", "4", "--bind", "0.0.0.0:80", "--log-level", "info" ,"app:app"]
CMD ["gunicorn","app:app"]