Skip to content

Commit

Permalink
download nltk files in build step instead of during the start of the …
Browse files Browse the repository at this point in the history
…application
  • Loading branch information
Fluder-Paradyne committed Aug 10, 2023
1 parent 5a25cbd commit e1cc92c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ COPY requirements.txt .
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt

RUN python -m nltk.downloader averaged_perceptron_tagger punkt

COPY . .

RUN chmod +x ./entrypoint.sh ./wait-for-it.sh ./install_tool_dependencies.sh ./entrypoint_celery.sh
Expand All @@ -29,5 +31,6 @@ RUN apt-get update && \

COPY --from=compile-image /opt/venv /opt/venv
COPY --from=compile-image /app /app
COPY --from=compile-image /root/nltk_data /root/nltk_data

ENV PATH="/opt/venv/bin:$PATH"

0 comments on commit e1cc92c

Please sign in to comment.