Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
cleanup: move python dependencies to a file
Browse files Browse the repository at this point in the history
Signed-off-by: K.B.Dharun Krishna <[email protected]>
  • Loading branch information
kbdharun committed Oct 11, 2023
1 parent c123ba9 commit 338323d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ RUN apt-get update && apt-get upgrade -y

# Install Python, pip, git, and Jupyter Notebook
RUN apt-get install -y python3 python3-pip git
RUN pip3 install notebook

# Install NLTK and other dependencies
RUN pip3 install nltk
# Copy the requirements file into the container at /app
COPY requirements.txt /app/

# Install Python packages from requirements file
RUN pip3 install -r /app/requirements.txt

# Create a directory for NLTK data and download 'all'
RUN python3 -m nltk.downloader all
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
notebook
nltk

0 comments on commit 338323d

Please sign in to comment.