Run the docker commands after the copy, and maybe they will work!

This commit is contained in:
Dan Funk 2019-12-31 12:13:20 -05:00
parent 9a195bedad
commit cc33f686e5
1 changed files with 4 additions and 3 deletions

View File

@ -18,16 +18,17 @@ RUN pipenv install --dev
ENV FLASK_APP=./crc/__init__.py
# include rejoiner code (gets overriden by local changes)
COPY . /crc-workflow/
# run migrations
CMD ["pipenv", "run", "flask", "db", "upgrade"]
CMD ["pipenv", "run", "flask", "load-example-data"]
# include rejoiner code (gets overriden by local changes)
COPY . /crc-workflow/
# run webserver by default
CMD ["pipenv", "run", "python", "/crc-workflow/run.py"]
# expose ports
EXPOSE 5000