fix username and password from config.txt
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
|
||||
@@ -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
4
entrypoint.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
export CARDS_SETTINGS=/src/config.txt
|
||||
gunicorn --bind 0.0.0.0:8000 flash_cards:app
|
||||
Reference in New Issue
Block a user