Run the docker commands after the copy, and maybe they will work!
This commit is contained in:
parent
9a195bedad
commit
cc33f686e5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue