Skip to content

Commit

Permalink
Merge pull request #123 from VeryLittleGravitas/skyliner
Browse files Browse the repository at this point in the history
Added working Docker setup
  • Loading branch information
phae committed Mar 2, 2017
2 parents e9b1c71 + 902edaa commit f6ff039
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions Dockerfile
@@ -0,0 +1,15 @@
FROM ubuntu:14.04
RUN apt-get update -y
RUN apt-get install -y python3-pip python3-dev build-essential
RUN apt-get install -y libpq-dev
ADD . .
RUN pip3 install -r ./requirements.txt
RUN pip3 install honcho

# This is to protect against load balancer keep-alive timeouts; see
# https://github.com/benoitc/gunicorn/issues/1194 and
# https://serverfault.com/questions/782022/keepalive-setting-for-gunicorn-behind-elb-without-nginx
ENV PYTHONUNBUFFERED 1

# Run the processes named in the Procfile
CMD honcho start
2 changes: 1 addition & 1 deletion debug.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from CDTADPQ.web import app

if __name__ == '__main__':
Expand Down

0 comments on commit f6ff039

Please sign in to comment.