add nltk punkt resource (#7063)

This commit is contained in:
Jyong
2024-08-08 14:23:22 +08:00
committed by GitHub
parent 34a9dbe826
commit 169cde6c3c
2 changed files with 4 additions and 2 deletions

View File

@@ -55,6 +55,9 @@ ENV VIRTUAL_ENV=/app/api/.venv
COPY --from=packages ${VIRTUAL_ENV} ${VIRTUAL_ENV}
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
# Download nltk data
RUN python -c "import nltk; nltk.download('punkt')"
# Copy source code
COPY . /app/api/