Spaces:
Runtime error
Runtime error
Guhanselvam
commited on
Commit
•
0b67877
1
Parent(s):
82428a0
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -7,6 +7,9 @@ WORKDIR /app
|
|
7 |
# Environment variable for Hugging Face cache
|
8 |
ENV TRANSFORMERS_CACHE=/app/cache
|
9 |
|
|
|
|
|
|
|
10 |
# Copy requirements.txt and install dependencies
|
11 |
COPY requirements.txt .
|
12 |
|
|
|
7 |
# Environment variable for Hugging Face cache
|
8 |
ENV TRANSFORMERS_CACHE=/app/cache
|
9 |
|
10 |
+
# Ensure the cache directory exists and is writable
|
11 |
+
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
12 |
+
|
13 |
# Copy requirements.txt and install dependencies
|
14 |
COPY requirements.txt .
|
15 |
|