From 6f4f8df6a9b6762b8d8173f6f7832c8dd54f2f06 Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Wed, 1 Apr 2020 18:26:07 -0400 Subject: [PATCH] Runs flask db upgrade on startup --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 02d4fcf..3c7c5b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,7 @@ ENV FLASK_APP=./protocol-builder-mock/__init__.py COPY . /protocol-builder-mock/ # run webserver by default +CMD ["pipenv", "run", "flask", "db", "upgrade"] CMD ["pipenv", "run", "python", "/protocol-builder-mock/run.py"]