pvanand commited on
Commit
e5799f6
1 Parent(s): 2f785ac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -11
Dockerfile CHANGED
@@ -10,17 +10,8 @@ COPY . /app
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Create a directory for NLTK data
14
- RUN mkdir -p app/nltk_data && chmod -R 755 app/nltk_data
15
-
16
- # Download NLTK data
17
- RUN python -m nltk.downloader stopwords punkt
18
-
19
- # Make port 80 available to the world outside this container
20
- EXPOSE 80
21
-
22
- # Define environment variable
23
- ENV NAME World
24
 
25
  # Start the FastAPI app on port 7860, the default port expected by Spaces
26
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Run the script to download NLTK data
14
+ RUN python /app/download_nltk_data.py
 
 
 
 
 
 
 
 
 
15
 
16
  # Start the FastAPI app on port 7860, the default port expected by Spaces
17
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]