From 1b6e27b53d1f6b2a23d99da9837a71f3745716d8 Mon Sep 17 00:00:00 2001 From: mowoe <github@mowoe.com> Date: Sun, 28 Apr 2019 09:45:49 +0200 Subject: [PATCH] added import checking --- dockercont/Dockerfile | 6 ++++-- main.py | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dockercont/Dockerfile b/dockercont/Dockerfile index 471eacf..944e91d 100644 --- a/dockercont/Dockerfile +++ b/dockercont/Dockerfile @@ -1,2 +1,4 @@ -FROM tiangolo/uwsgi-nginx-flask:flask -RUN git clone https://gitlab.warpzone.ms/mowoe/chaos_familien_duell_frontend.git /app +FROM tiangolo/uwsgi-nginx-flask:python3.6 +RUN pip install peewee +RUN git clone https://gitlab.warpzone.ms/mowoe/chaos_familien_duell_frontend.git /zwisch +RUN mv /zwisch/* /app diff --git a/main.py b/main.py index 1127d86..6a50e62 100644 --- a/main.py +++ b/main.py @@ -4,4 +4,5 @@ from view.questions import questions app = Flask(__name__) app.config['SECRET_KEY'] = 'blubb' app.register_blueprint(questions) -app.run("0.0.0.0",debug=True) +if __name__ == "__main__": + app.run("0.0.0.0",debug=True) -- GitLab