Skip to content

armgit / mwmbl

Public Imported from GitHub
0

An open source, non-profit web search engine

Make sure we copy the model

Daoud Clarke13973f5762c6
diff --git a/Dockerfile b/Dockerfile
index d970ca5..2f52bbb 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -60,6 +60,11 @@ RUN apt-get update && apt-get install -y postgresql-client && rm -rf /var/lib/ap
# Copy only the required /venv directory from the builder image that contains mwmbl and its dependencies
COPY --from=builder /venv /venv
+# Copy devdata so the installed package can resolve RUST_MODEL_PATH correctly
+# (settings_common.py resolves RUST_MODEL_PATH relative to the installed package location,
+# which points to /venv/lib/python3.11/site-packages/devdata/...)
+COPY devdata /venv/lib/python3.11/site-packages/devdata
+
# Copy the front end build
COPY --from=front-end /front-end/dist /front-end-build