Skip to content

Commit

Permalink
Download the nltk data during container image build
Browse files Browse the repository at this point in the history
  • Loading branch information
4c0n committed Nov 18, 2024
1 parent ae858aa commit 5a68553
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ CMD uwsgi

FROM signals-classification-base AS signals-classification-train

RUN mkdir /tmp/nltk

ENV NLTK_DATA /tmp/nltk
ENV NLTK_DATA /usr/local/share/nltk_data

RUN poetry install --with train

RUN python -m nltk.downloader -d /usr/local/share/nltk_data stopwords

ENTRYPOINT ["python", "/app/app/train/run.py"]

0 comments on commit 5a68553

Please sign in to comment.