mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-22 20:58:28 +00:00
Tweaks order & syntax of pipenv commands
This commit is contained in:
parent
f312a0a0de
commit
e3a9cd8e04
13
Dockerfile
13
Dockerfile
@ -16,21 +16,16 @@ ADD Pipfile /crc-workflow/
|
|||||||
ADD Pipfile.lock /crc-workflow/
|
ADD Pipfile.lock /crc-workflow/
|
||||||
RUN pipenv install --dev
|
RUN pipenv install --dev
|
||||||
|
|
||||||
ENV FLASK_APP=./crc/__init__.py
|
|
||||||
RUN echo $FLASK_APP
|
|
||||||
|
|
||||||
# include rejoiner code (gets overriden by local changes)
|
# include rejoiner code (gets overriden by local changes)
|
||||||
COPY . /crc-workflow/
|
COPY . /crc-workflow/
|
||||||
|
|
||||||
# run migrations
|
# run migrations
|
||||||
CMD ["pipenv", "run", "flask", "db", "upgrade"]
|
ENV FLASK_APP=./crc/__init__.py
|
||||||
CMD ["pipenv", "run", "flask", "load-example-data"]
|
RUN pipenv run flask db upgrade
|
||||||
|
RUN pipenv run flask load-example-data
|
||||||
|
|
||||||
# run webserver by default
|
# run webserver by default
|
||||||
CMD ["pipenv", "run", "python", "/crc-workflow/run.py"]
|
CMD ["pipenv", "run", "python", "./run.py"]
|
||||||
|
|
||||||
|
|
||||||
# expose ports
|
# expose ports
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user