Skip to content

Instantly share code, notes, and snippets.

@marians
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marians/984d1116739c9e3b2a7c to your computer and use it in GitHub Desktop.
Save marians/984d1116739c9e3b2a7c to your computer and use it in GitHub Desktop.
giantswarm.io webapp component as of 2015-02-08
import webapp
webapp.flaskapp.run(
debug=True,
host='0.0.0.0',
port=8000)
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"]
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