From 7583e5528d902c932a6f7b47344ab7a26cccae46 Mon Sep 17 00:00:00 2001 From: Mark <mark@openappstack.net> Date: Thu, 12 Sep 2019 16:24:29 +0200 Subject: [PATCH] Add Dockerfile --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9f2490c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM python:3.7 + +WORKDIR /usr/src/app + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +EXPOSE 5000 + +ENV FLASK_ENV production +ENV FLASK_RUN_HOST 0.0.0.0 +ENV DATABASE_USER dbuser +ENV DATABASE_PASSWORD secret +ENV DATABASE_NAME db +ENV DATABASE_HOST postgresql + +CMD [ "flask", "run" ] -- GitLab