mirror of
https://github.com/hanzoai/helpdesk.git
synced 2026-10-12 16:56:02 +00:00
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
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user