1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-02 20:15:24 +02:00

fix: Pre-download NLTK during Docker build (#5290)

This commit is contained in:
Michael Genson 2025-03-30 02:22:58 -05:00 committed by GitHub
parent 1c6b35a53c
commit 07cd98c125
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,6 +141,11 @@ RUN mkdir -p /run/secrets
# Copy venv into image. It contains a fully-installed mealie backend and frontend.
COPY --from=venv-builder $VENV_PATH $VENV_PATH
# install nltk data for the ingredient parser
ENV NLTK_DATA="/nltk_data/"
RUN mkdir -p $NLTK_DATA
RUN python -m nltk.downloader -d $NLTK_DATA averaged_perceptron_tagger_eng
VOLUME [ "$MEALIE_HOME/data/" ]
ENV APP_PORT=9000