fix username and password from config.txt

This commit is contained in:
tinpee
2016-10-18 09:56:05 +07:00
parent d456b8668f
commit 1c6a8c83ec
3 changed files with 11 additions and 3 deletions

View File

@@ -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"]

View File

@@ -1,3 +1,3 @@
SECRET_KEY='some very long key here'
USERNAME='username-here'
PASSWORD='password-here'
USERNAME='username-test'
PASSWORD='password-test'

4
entrypoint.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
export CARDS_SETTINGS=/src/config.txt
gunicorn --bind 0.0.0.0:8000 flash_cards:app