From 95237ee8a2b10b3181f6d968fb573fe614fa707a Mon Sep 17 00:00:00 2001 From: mowoe <github@mowoe.com> Date: Sun, 28 Apr 2019 09:18:58 +0200 Subject: [PATCH] added dockerfile and right port binding --- dockercont/Dockerfile | 7 +++++++ main.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 dockercont/Dockerfile diff --git a/dockercont/Dockerfile b/dockercont/Dockerfile new file mode 100644 index 0000000..f777189 --- /dev/null +++ b/dockercont/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.6 +RUN pip install Flask +RUN pip install peewee +WORKDIR /app +RUN git clone https://gitlab.warpzone.ms/mowoe/chaos_familien_duell_frontend.git /app +RUN ls +CMD ["python", "main.py"] diff --git a/main.py b/main.py index e618dd7..1127d86 100644 --- a/main.py +++ b/main.py @@ -4,4 +4,4 @@ from view.questions import questions app = Flask(__name__) app.config['SECRET_KEY'] = 'blubb' app.register_blueprint(questions) -app.run(debug=True) +app.run("0.0.0.0",debug=True) -- GitLab