Skip to content

Commit

Permalink
feat: add nltk layer
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Apr 15, 2024
1 parent 8f6faaa commit ec9983d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/Dockerfile.aws.lambda
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ COPY . ${LAMBDA_TASK_ROOT}
COPY requirements.txt .
RUN pip3 install -r requirements.txt --target "${LAMBDA_TASK_ROOT}" -U --no-cache-dir

RUN pip install nltk

RUN python -W ignore -m nltk.downloader punkt -d /build/nltk_data
RUN python -W ignore -m nltk.downloader stopwords -d /build/nltk_data

CMD ["python", "main.py"]

0 comments on commit ec9983d

Please sign in to comment.