Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -79,6 +79,12 @@ COPY requirements.txt .
|
|
79 |
RUN pip install --upgrade pip
|
80 |
RUN pip install --no-cache-dir --verbose -r requirements.txt
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
# Download NLTK data
|
83 |
RUN python -m nltk.downloader punkt
|
84 |
|
|
|
79 |
RUN pip install --upgrade pip
|
80 |
RUN pip install --no-cache-dir --verbose -r requirements.txt
|
81 |
|
82 |
+
# Set a writable cache directory
|
83 |
+
ENV TRANSFORMERS_CACHE=/app/cache
|
84 |
+
|
85 |
+
# Ensure the cache directory exists
|
86 |
+
RUN mkdir -p /app/cache
|
87 |
+
|
88 |
# Download NLTK data
|
89 |
RUN python -m nltk.downloader punkt
|
90 |
|