Spaces:
Sleeping
Sleeping
Commit
·
c510f6e
1
Parent(s):
60ffe25
change dockerfile for cache permissions
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -10,6 +10,9 @@ COPY requirements.txt /app/
|
|
10 |
# Step 4: Install any dependencies
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
|
|
|
|
|
|
13 |
# Step 5: Copy the rest of the application code
|
14 |
COPY . /app/
|
15 |
|
|
|
10 |
# Step 4: Install any dependencies
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
+
# Set an environment variable for Hugging Face cache
|
14 |
+
ENV TRANSFORMERS_CACHE=/app/huggingface_cache
|
15 |
+
|
16 |
# Step 5: Copy the rest of the application code
|
17 |
COPY . /app/
|
18 |
|