mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-23 15:19:41 +02:00
fix: Pre-download NLTK during Docker build (#5290)
This commit is contained in:
parent
282c9fc571
commit
6c678cd0f4
1 changed files with 5 additions and 0 deletions
|
@ -141,6 +141,11 @@ RUN mkdir -p /run/secrets
|
||||||
# Copy venv into image. It contains a fully-installed mealie backend and frontend.
|
# Copy venv into image. It contains a fully-installed mealie backend and frontend.
|
||||||
COPY --from=venv-builder $VENV_PATH $VENV_PATH
|
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/" ]
|
VOLUME [ "$MEALIE_HOME/data/" ]
|
||||||
ENV APP_PORT=9000
|
ENV APP_PORT=9000
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue