Fix Dockerfile: copy algo.md before mix compile (read at compile time)
This commit is contained in:
parent
b86c822010
commit
6fbec7ea9b
1 changed files with 1 additions and 3 deletions
|
|
@ -77,6 +77,7 @@ RUN mkdir -p priv/models priv/static
|
||||||
|
|
||||||
# copy application code and compile
|
# copy application code and compile
|
||||||
COPY lib lib
|
COPY lib lib
|
||||||
|
COPY algo.md algo.md
|
||||||
RUN mix compile
|
RUN mix compile
|
||||||
|
|
||||||
# copy assets and build (JS/CSS changes don't require recompilation)
|
# copy assets and build (JS/CSS changes don't require recompilation)
|
||||||
|
|
@ -87,9 +88,6 @@ RUN mix assets.deploy
|
||||||
# after compile so model retraining doesn't bust the compile cache
|
# after compile so model retraining doesn't bust the compile cache
|
||||||
COPY priv priv
|
COPY priv priv
|
||||||
|
|
||||||
# algo.md is runtime documentation, not compiled
|
|
||||||
COPY algo.md algo.md
|
|
||||||
|
|
||||||
# runtime config doesn't require recompilation
|
# runtime config doesn't require recompilation
|
||||||
COPY config/runtime.exs config/
|
COPY config/runtime.exs config/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue