Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Deploy using Gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed May 17, 2017
1 parent 4cb31d2 commit e419732
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \

RUN pip2 install -U flake8 pep8 pep8-naming pylint flake8-import-order \
&& python3.5 -m pip install -U flake8 pep8 pep8-naming pylint flake8-import-order \
&& python3.6 -m pip install -U badwolf \
&& python3.6 -m pip install -U badwolf gunicorn \
&& rm -rf /var/lib/apt/list/* /tmp/* /var/tmp/*

EXPOSE 8000

ENTRYPOINT /usr/local/bin/badwolf runserver --port 8000
ENTRYPOINT /usr/local/bin/gunicorn --bind 0.0.0.0:8000 --threads 20 --access-logfile - badwolf.wsgi:app
3 changes: 2 additions & 1 deletion src.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \
RUN pip2 install -U flake8 pep8 pep8-naming pylint flake8-import-order \
&& python3.5 -m pip install -U flake8 pep8 pep8-naming pylint flake8-import-order \
&& python3.6 -m pip install -Ur requirements.txt \
&& python3.6 -m pip install gunicorn \
&& python3.6 -m pip install . \
&& rm -rf /var/lib/apt/list/* /tmp/* /var/tmp/*

EXPOSE 8000

ENTRYPOINT /usr/local/bin/badwolf runserver --port 8000
ENTRYPOINT /usr/local/bin/gunicorn --bind 0.0.0.0:8000 --threads 20 badwolf.wsgi:app

0 comments on commit e419732

Please sign in to comment.