Spaces:
Sleeping
Sleeping
Commit
·
1dbe00a
1
Parent(s):
e48e5e1
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -11,6 +11,9 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
# Download punkt data for NLTK
|
| 15 |
RUN python -c "import nltk; nltk.download('punkt')"
|
| 16 |
|
|
|
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
+
# Set a writable directory for NLTK data
|
| 15 |
+
ENV NLTK_DATA=/code/nltk_data
|
| 16 |
+
|
| 17 |
# Download punkt data for NLTK
|
| 18 |
RUN python -c "import nltk; nltk.download('punkt')"
|
| 19 |
|