Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -7,6 +7,9 @@ WORKDIR /app
|
|
| 7 |
# Copy the requirements file
|
| 8 |
COPY requirements.txt .
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
# Set environment variables for Hugging Face and Matplotlib
|
| 11 |
ENV TRANSFORMERS_CACHE=/cache/huggingface
|
| 12 |
ENV MPLCONFIGDIR=/cache/matplotlib
|
|
|
|
| 7 |
# Copy the requirements file
|
| 8 |
COPY requirements.txt .
|
| 9 |
|
| 10 |
+
# Change permission
|
| 11 |
+
chmod -R 755 ~/cache/huggingface ~/cache/matplotlib
|
| 12 |
+
|
| 13 |
# Set environment variables for Hugging Face and Matplotlib
|
| 14 |
ENV TRANSFORMERS_CACHE=/cache/huggingface
|
| 15 |
ENV MPLCONFIGDIR=/cache/matplotlib
|