Skip to content

Commit 1c6a8c8

Browse files
author
tinpee
committed
fix username and password from config.txt
1 parent d456b86 commit 1c6a8c8

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ WORKDIR /src
66
RUN pip install flask gunicorn \
77
&& cp cards-jwasham.db cards.db
88

9-
CMD ["gunicorn", "--bind", " 0.0.0.0:8000", "flash_cards:app"]
9+
COPY entrypoint.sh /
10+
RUN chmod +x /entrypoint.sh
11+
12+
EXPOSE 8000
13+
CMD ["/entrypoint.sh"]
1014

1115

config.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
SECRET_KEY='some very long key here'
2-
USERNAME='username-here'
3-
PASSWORD='password-here'
2+
USERNAME='username-test'
3+
PASSWORD='password-test'

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
export CARDS_SETTINGS=/src/config.txt
4+
gunicorn --bind 0.0.0.0:8000 flash_cards:app

0 commit comments

Comments
 (0)