-
-
Save marians/984d1116739c9e3b2a7c to your computer and use it in GitHub Desktop.
giantswarm.io webapp component as of 2015-02-08
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import webapp | |
webapp.flaskapp.run( | |
debug=True, | |
host='0.0.0.0', | |
port=8000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:wheezy | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update -qq && \ | |
apt-get upgrade -y -q && \ | |
apt-get install -y -q libyaml-dev python-pip python-dev && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* | |
ADD requirements.txt /requirements.txt | |
RUN pip install -r /requirements.txt | |
ADD webapp /webapp | |
ADD config.py / | |
ADD gunicorn.conf /gunicorn.conf | |
ADD devserver.py /devserver.py | |
EXPOSE 8000 | |
WORKDIR / | |
CMD ["gunicorn", "-c", "gunicorn.conf", "webapp:flaskapp"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proc_name = "webapp" | |
workers = 2 | |
bind = "0.0.0.0:8000" | |
accesslog = "-" | |
errorlog = "-" | |
loglevel = "info" | |
keepalive = 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment