From ef2bcc15730b6e35b689622c75e8700d1269b3a9 Mon Sep 17 00:00:00 2001 From: Daniel Muckerman Date: Sun, 14 Jun 2020 21:26:39 -0400 Subject: [PATCH] Docker stuffs --- Dockerfile | 10 ++++++++++ app.py | 2 +- config.yaml => config/config.yaml | 0 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Dockerfile rename config.yaml => config/config.yaml (100%) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ad6f018 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM python:3.7 + +LABEL maintainer="Dan Muckerman " + +WORKDIR /project +ADD . /project +RUN rm -rf /project/env + +RUN pip install -r requirements.txt +CMD ["flask","run","--host=0.0.0.0"] \ No newline at end of file diff --git a/app.py b/app.py index 0e964ee..d1950c2 100644 --- a/app.py +++ b/app.py @@ -7,7 +7,7 @@ Bootstrap(app) app.secret_key = 'asdf' app.debug = True -with open('config.yaml') as f: +with open('config/config.yaml') as f: yaml_data = yaml.load(f, Loader=yaml.SafeLoader) search = yaml_data['search'] diff --git a/config.yaml b/config/config.yaml similarity index 100% rename from config.yaml rename to config/config.yaml