Skip to content

Instantly share code, notes, and snippets.

@krrg
Created February 24, 2017 23:46
Show Gist options
  • Save krrg/865fc98d3c56e80f6e40c9fb28933d71 to your computer and use it in GitHub Desktop.
Save krrg/865fc98d3c56e80f6e40c9fb28933d71 to your computer and use it in GitHub Desktop.
WSGI Dockerfile / Elastic Beanstalk
FROM python:2.7
ADD . /app
WORKDIR /app
RUN pip install -r requirements.txt
CMD gunicorn --bind=0.0.0.0:13300 --max-requests=1200 --max-requests-jitter=300 --workers=8 --worker-class=gevent main:app
EXPOSE 13300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment