Spaces:
Sleeping
Sleeping
Commit
·
2b643f9
1
Parent(s):
1dbe00a
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -11,7 +11,10 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
-
#
|
|
|
|
|
|
|
|
|
|
| 15 |
ENV NLTK_DATA=/code/nltk_data
|
| 16 |
|
| 17 |
# Download punkt data for NLTK
|
|
|
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
+
# Create the nltk_data directory and set permissions
|
| 15 |
+
RUN mkdir -p /code/nltk_data && chmod -R 777 /code/nltk_data
|
| 16 |
+
|
| 17 |
+
# Set the NLTK_DATA environment variable to the created directory
|
| 18 |
ENV NLTK_DATA=/code/nltk_data
|
| 19 |
|
| 20 |
# Download punkt data for NLTK
|