diff --git a/dockercont/Dockerfile b/dockercont/Dockerfile index 933af0a2fba622843e5fe0878ae0624e1c936976..2703e8c92effde349f74ed2198e10bcfdb9d13a8 100644 --- a/dockercont/Dockerfile +++ b/dockercont/Dockerfile @@ -2,4 +2,5 @@ FROM tiangolo/uwsgi-nginx-flask:python3.6 RUN pip install peewee RUN pip install mysql RUN git clone https://gitlab.warpzone.ms/mowoe/chaos_familien_duell_frontend.git /zwisch +ADD creds.json /app/ RUN mv /zwisch/* /app diff --git a/main.py b/main.py index 82119e6672db048487ec9dc0cc550c74d1934fb3..6fe2ef78ab7989be2ccf61306b9c6d9b1e4281a7 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,7 @@ from flask import Flask from view.questions import questions +from model import Question +import json if len(Question.select()) is 0: with open("questions.json", "r") as file: