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
|
ENV FLASK_APP=./crc/__init__.py
|
||||||
|
|
||||||
|
# include rejoiner code (gets overriden by local changes)
|
||||||
|
COPY . /crc-workflow/
|
||||||
|
|
||||||
# run migrations
|
# run migrations
|
||||||
CMD ["pipenv", "run", "flask", "db", "upgrade"]
|
CMD ["pipenv", "run", "flask", "db", "upgrade"]
|
||||||
CMD ["pipenv", "run", "flask", "load-example-data"]
|
CMD ["pipenv", "run", "flask", "load-example-data"]
|
||||||
|
|
||||||
# include rejoiner code (gets overriden by local changes)
|
|
||||||
COPY . /crc-workflow/
|
|
||||||
|
|
||||||
# run webserver by default
|
# run webserver by default
|
||||||
CMD ["pipenv", "run", "python", "/crc-workflow/run.py"]
|
CMD ["pipenv", "run", "python", "/crc-workflow/run.py"]
|
||||||
|
|
||||||
|
|
||||||
# expose ports
|
# expose ports
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue