fix: Manually implement nltk.downloader using cURL (#7817)

This commit is contained in:
Michael Genson
2026-06-27 22:11:55 -05:00
committed by GitHub
parent c9703d41c7
commit 7a12538267
2 changed files with 61 additions and 2 deletions

View File

@@ -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