From cc33f686e594acce356e35f0d3c2282dff74b681 Mon Sep 17 00:00:00 2001 From: Dan Funk Date: Tue, 31 Dec 2019 12:13:20 -0500 Subject: [PATCH] Run the docker commands after the copy, and maybe they will work! --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ec4f1516..6dc415aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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