mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-07-15 04:00:15 -04:00
fix: Manually implement nltk.downloader using cURL (#7817)
This commit is contained in:
@@ -131,6 +131,7 @@ RUN apt-get update \
|
||||
iproute2 \
|
||||
libldap-common \
|
||||
libldap2 \
|
||||
unzip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# create directory used for Docker Secrets
|
||||
@@ -141,8 +142,8 @@ 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
|
||||
COPY ./docker/setup_nltk_data.sh $MEALIE_HOME/setup_nltk_data.sh
|
||||
RUN chmod +x $MEALIE_HOME/setup_nltk_data.sh && $MEALIE_HOME/setup_nltk_data.sh
|
||||
|
||||
VOLUME [ "$MEALIE_HOME/data/" ]
|
||||
ENV APP_PORT=9000
|
||||
|
||||
Reference in New Issue
Block a user