Update Dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
|
@@ -14,6 +14,13 @@ COPY vectorizer.pkl .
|
|
| 14 |
COPY requirements.txt .
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
# Expose the port the app will run on
|
| 18 |
EXPOSE 8080
|
| 19 |
|
|
|
|
| 14 |
COPY requirements.txt .
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
|
| 17 |
+
# Download NLTK data (stopwords, punkt) to a specific directory
|
| 18 |
+
RUN mkdir -p /app/nltk_data && \
|
| 19 |
+
python3 -m nltk.downloader -d /app/nltk_data stopwords punkt
|
| 20 |
+
|
| 21 |
+
# Set the NLTK_DATA environment variable to use the downloaded data
|
| 22 |
+
ENV NLTK_DATA=/app/nltk_data
|
| 23 |
+
|
| 24 |
# Expose the port the app will run on
|
| 25 |
EXPOSE 8080
|
| 26 |
|