Skip to content

Commit

Permalink
feat: add custom layer
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Apr 15, 2024
1 parent e5fc349 commit 8d9c62e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/Dockerfile.aws.lambda
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ RUN pip3 install -r requirements.txt --target "${LAMBDA_TASK_ROOT}" -U --no-cach
# Setup NLTK again in system path to execute nltk.downloader
RUN pip install nltk
# Setup directory for NLTK_DATA
RUN mkdir -p ./nltk_data
RUN mkdir -p /opt/nltk_data

# Download NLTK_DATA to build directory
RUN python -W ignore -m nltk.downloader punkt -d ./nltk_data
RUN python -W ignore -m nltk.downloader stopwords -d ./nltk_data
RUN python -W ignore -m nltk.downloader punkt -d /opt/nltk_data
RUN python -W ignore -m nltk.downloader stopwords -d /opt/nltk_data

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

0 comments on commit 8d9c62e

Please sign in to comment.