Fix Dockerfile: copy algo.md before mix compile (read at compile time)

This commit is contained in:
Graham McIntire 2026-04-01 10:38:35 -05:00
parent b86c822010
commit 6fbec7ea9b
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -77,6 +77,7 @@ RUN mkdir -p priv/models priv/static
# copy application code and compile
COPY lib lib
COPY algo.md algo.md
RUN mix compile
# 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
COPY priv priv
# algo.md is runtime documentation, not compiled
COPY algo.md algo.md
# runtime config doesn't require recompilation
COPY config/runtime.exs config/