Skip to content

Commit

Permalink
Merge pull request #1023 from TransformerOptimus/download_nltk_in_bui…
Browse files Browse the repository at this point in the history
…ld_step

Download nltk files in build step
  • Loading branch information
Tarraann authored Aug 10, 2023
2 parents b1d955f + e1cc92c commit 240912f
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 240912f

Please sign in to comment.