tlong-ds commited on
Commit
f31ff01
·
verified ·
1 Parent(s): 249b47a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -11,10 +11,11 @@ RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
11
  ENV NLTK_DATA=/app/nltk_data
12
 
13
  # Create NLTK data directory and download required data
14
- #RUN mkdir -p /app/nltk_data && \
15
- #
 
16
  # Pre-download NLTK data into the app folder
17
- RUN python -m nltk.downloader -d /app/nltk_data twitter_samples
18
 
19
  # Copy source code
20
  COPY . /app
 
11
  ENV NLTK_DATA=/app/nltk_data
12
 
13
  # Create NLTK data directory and download required data
14
+ RUN mkdir -p /app/nltk_data && \
15
+ python -c "import nltk; nltk.data.path.append('/app/nltk_data'); nltk.download('twitter_samples', download_dir='/app/nltk_data'); nltk.download('stopwords', download_dir='/app/nltk_data')"
16
+
17
  # Pre-download NLTK data into the app folder
18
+ #RUN python -m nltk.downloader -d /app/nltk_data twitter_samples
19
 
20
  # Copy source code
21
  COPY . /app