diff --git a/Dockerfile b/Dockerfile index f34f2fe..7b60b35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5a8721b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +notebook +nltk