Carry the NLTK corpora the search index reads in the image
Hanzo CI/CD / cicd (push) Waiting to run
CI/CD / cicd (push) Waiting to run

helpdesk's after_migrate hook downloads the tagger, punkt_tab and brown
corpora when they are missing from the container. The image now holds
them, so a boot runs migrate without a network download.

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
zooqueen
2026-09-15 12:55:05 -07:00
co-authored by Hanzo Dev
parent 93d133b285
commit 9e0fbd66ea
+4
View File
@@ -88,6 +88,10 @@ RUN --mount=type=bind,target=/tmp/context \
&& bench get-app file:///tmp/apps/helpdesk \
&& rm -rf /tmp/apps
# helpdesk's search reads NLTK corpora, and its after_migrate hook downloads any
# that are missing. The image carries them, so a boot makes no download.
RUN env/bin/python -c "import nltk; [nltk.download(c, quiet=True, raise_on_error=True) for c in ('averaged_perceptron_tagger_eng', 'punkt_tab', 'brown')]"
# Build all frontend assets (frappe desk + helpdesk SPA).
RUN bench build --production