Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from VeryLittleGravitas/skyliner
Added working Docker setup
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python3 | ||
from CDTADPQ.web import app | ||
|
||
if __name__ == '__main__': | ||
|