Spaces:
Runtime error
Runtime error
Gilbert Botchway commited on
Commit ·
4dd43cf
1
Parent(s): 4fd2283
modification to docker
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
|
@@ -3,7 +3,7 @@ FROM python:3.9
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Create a writable directory for the cache
|
| 6 |
-
RUN mkdir -p /.cache/huggingface/hub
|
| 7 |
|
| 8 |
# Set the TRANSFORMERS_CACHE environment variable
|
| 9 |
ENV TRANSFORMERS_CACHE /.cache/huggingface/hub
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Create a writable directory for the cache
|
| 6 |
+
RUN mkdir -p /.cache/huggingface/hub && chmod -R 777 /.cache
|
| 7 |
|
| 8 |
# Set the TRANSFORMERS_CACHE environment variable
|
| 9 |
ENV TRANSFORMERS_CACHE /.cache/huggingface/hub
|