Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -9,11 +9,11 @@ WORKDIR /app
|
|
9 |
# Copy the application files
|
10 |
COPY . .
|
11 |
|
12 |
-
# Create
|
13 |
-
RUN mkdir -p /
|
14 |
|
15 |
-
# Set environment variable to point to the cache directory
|
16 |
-
ENV HF_HOME=/
|
17 |
|
18 |
USER root
|
19 |
|
|
|
9 |
# Copy the application files
|
10 |
COPY . .
|
11 |
|
12 |
+
# Create a new cache directory outside of /app
|
13 |
+
RUN mkdir -p /cache/huggingface && chown -R appuser:appgroup /cache/huggingface
|
14 |
|
15 |
+
# Set environment variable to point to the new cache directory
|
16 |
+
ENV HF_HOME=/cache/huggingface
|
17 |
|
18 |
USER root
|
19 |
|