From c1f94edfeab3a1bd5d0e3b03d0de0763a8d741ed Mon Sep 17 00:00:00 2001 From: EvilMuffinHa Date: Wed, 14 Oct 2020 21:45:54 -0400 Subject: [PATCH] docker support --- Dockerfile | 9 +++++++++ Procfile | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..926f1ed --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:3.8 + +ADD . /root/ + +WORKDIR /root + +RUN pip install -r requirements.txt + +CMD [ "gunicorn", "--chdir", "src", "app:app"] \ No newline at end of file diff --git a/Procfile b/Procfile index 8001d1a..69c156d 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: gunicorn app:app \ No newline at end of file +web: gunicorn --chdir src app:app \ No newline at end of file