Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -10,8 +10,11 @@ RUN pip install --upgrade pip
|
|
10 |
# Copy the current directory contents into the container at /app
|
11 |
COPY . /app
|
12 |
|
13 |
-
# Set the HF_HOME environment variable
|
14 |
-
ENV HF_HOME /app/cache
|
|
|
|
|
|
|
15 |
|
16 |
# Install any needed packages specified in requirements.txt
|
17 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
10 |
# Copy the current directory contents into the container at /app
|
11 |
COPY . /app
|
12 |
|
13 |
+
# Set the HF_HOME environment variable to a writable directory
|
14 |
+
ENV HF_HOME /app/cache/hf
|
15 |
+
|
16 |
+
# Create the cache directory and set permissions
|
17 |
+
RUN mkdir -p /app/cache/hf && chmod -R 777 /app/cache/hf
|
18 |
|
19 |
# Install any needed packages specified in requirements.txt
|
20 |
RUN pip install --no-cache-dir -r requirements.txt
|