mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-19 02:51:48 +02:00
Add Docker, remove test data
This commit is contained in:
parent
c62314d9eb
commit
83a7b195f2
1
.gitignore
vendored
1
.gitignore
vendored
@ -131,3 +131,4 @@ dmypy.json
|
||||
|
||||
# Test data
|
||||
test.db
|
||||
config.json
|
||||
|
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
FROM tiangolo/uwsgi-nginx-flask:python3.7
|
||||
|
||||
RUN pip install requests
|
||||
|
||||
RUN pip install pandas
|
||||
|
||||
RUN pip install Flask-BasicAuth
|
||||
|
||||
RUN pip install bs4
|
||||
|
||||
COPY ./app /app
|
@ -25,7 +25,7 @@ def setup_config(app):
|
||||
config = json.load(handle)
|
||||
print("Loaded existing config")
|
||||
else:
|
||||
config = {'username': 'admin', 'password': 'Karaoke2019blubb'}
|
||||
config = {'username': 'admin', 'password': 'changeme'}
|
||||
with open(config_file, 'w') as handle:
|
||||
json.dump(config, handle, indent=4, sort_keys=True)
|
||||
print("Wrote new config")
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"password": "w",
|
||||
"username": "admin"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user