Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -5,10 +5,10 @@ FROM python:3.10
|
|
5 |
WORKDIR /app
|
6 |
|
7 |
# Create a cache directory for Hugging Face models
|
8 |
-
RUN mkdir -p /app/cache
|
9 |
|
10 |
# Set environment variable for cache
|
11 |
-
ENV
|
12 |
|
13 |
# Copy the dependencies file
|
14 |
COPY requirements.txt .
|
|
|
5 |
WORKDIR /app
|
6 |
|
7 |
# Create a cache directory for Hugging Face models
|
8 |
+
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
9 |
|
10 |
# Set environment variable for cache
|
11 |
+
ENV HF_HOME=/app/cache
|
12 |
|
13 |
# Copy the dependencies file
|
14 |
COPY requirements.txt .
|