Add Docker, remove test data

This commit is contained in:
Phillip Kühne 2019-05-26 03:13:18 +02:00
parent c62314d9eb
commit 83a7b195f2
11 changed files with 14 additions and 6 deletions

1
.gitignore vendored
View File

@ -131,3 +131,4 @@ dmypy.json
# Test data # Test data
test.db test.db
config.json

11
Dockerfile Normal file
View 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

View File

@ -25,7 +25,7 @@ def setup_config(app):
config = json.load(handle) config = json.load(handle)
print("Loaded existing config") print("Loaded existing config")
else: else:
config = {'username': 'admin', 'password': 'Karaoke2019blubb'} config = {'username': 'admin', 'password': 'changeme'}
with open(config_file, 'w') as handle: with open(config_file, 'w') as handle:
json.dump(config, handle, indent=4, sort_keys=True) json.dump(config, handle, indent=4, sort_keys=True)
print("Wrote new config") print("Wrote new config")

View File

@ -1,4 +0,0 @@
{
"password": "w",
"username": "admin"
}