Runs flask db upgrade on startup

This commit is contained in:
Aaron Louie 2020-04-01 18:26:07 -04:00
parent a54ddec58b
commit 6f4f8df6a9

View File

@ -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"]