Skip to content

Commit

Permalink
configure docker automated build
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Mar 24, 2018
1 parent a3b84d3 commit 7320181
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git
__pycache__
*.pyc
*.pyo
*.pyd
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:3.6

COPY requirements.txt .

RUN pip install -r requirements.txt

COPY gunicorn_config.py .

COPY source /source

EXPOSE 5000

CMD ["gunicorn", "--chdir", "source", "--config", "./gunicorn_config.py", "flask_app:app"]
6 changes: 6 additions & 0 deletions gunicorn_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bind = '0.0.0.0:5000'
workers = 1
accesslog = '-'
loglevel = 'debug'
capture_output = True
enable_stdio_inheritance = True

0 comments on commit 7320181

Please sign in to comment.