Skip to content

Commit

Permalink
Merge pull request jwasham#4 from tinpee/master
Browse files Browse the repository at this point in the history
Fix docker username and password from config.txt
  • Loading branch information
jwasham authored Oct 18, 2016
2 parents 30c5e29 + 1c6a8c8 commit 8d381f4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ WORKDIR /src
RUN pip install flask gunicorn \
&& cp cards-jwasham.db cards.db

CMD ["gunicorn", "--bind", " 0.0.0.0:8000", "flash_cards:app"]
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh

EXPOSE 8000
CMD ["/entrypoint.sh"]


4 changes: 2 additions & 2 deletions config.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SECRET_KEY='some very long key here'
USERNAME='username-here'
PASSWORD='password-here'
USERNAME='username-test'
PASSWORD='password-test'
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

export CARDS_SETTINGS=/src/config.txt
gunicorn --bind 0.0.0.0:8000 flash_cards:app

0 comments on commit 8d381f4

Please sign in to comment.