Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
FROM python:3.9-slim
|
3 |
|
4 |
# Set environment variables for Hugging Face cache
|
5 |
-
ENV TRANSFORMERS_CACHE=/
|
6 |
-
ENV HF_DATASETS_CACHE=/
|
7 |
|
8 |
# Create the cache directory and set permissions
|
9 |
-
RUN mkdir -p /
|
10 |
|
11 |
# Set the working directory in the container
|
12 |
WORKDIR /app
|
|
|
2 |
FROM python:3.9-slim
|
3 |
|
4 |
# Set environment variables for Hugging Face cache
|
5 |
+
ENV TRANSFORMERS_CACHE=/tmp/.cache
|
6 |
+
ENV HF_DATASETS_CACHE=/tmp/.cache
|
7 |
|
8 |
# Create the cache directory and set permissions
|
9 |
+
RUN mkdir -p /tmp/.cache && chmod -R 777 /tmp/.cache
|
10 |
|
11 |
# Set the working directory in the container
|
12 |
WORKDIR /app
|