Spaces:
Sleeping
Sleeping
AshDavid12
commited on
Commit
·
653976e
1
Parent(s):
3a8e95e
hf home change
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -2,13 +2,13 @@
|
|
2 |
FROM python:3.11.1-buster
|
3 |
|
4 |
# Set the working directory
|
5 |
-
WORKDIR /
|
6 |
|
7 |
# Create a writable cache directory for Hugging Face
|
8 |
-
RUN mkdir -p /
|
9 |
|
10 |
# Set the environment variable for the Hugging Face cache
|
11 |
-
ENV HF_HOME=/
|
12 |
|
13 |
# Copy the requirements.txt file and install the dependencies
|
14 |
COPY requirements.txt .
|
|
|
2 |
FROM python:3.11.1-buster
|
3 |
|
4 |
# Set the working directory
|
5 |
+
WORKDIR /
|
6 |
|
7 |
# Create a writable cache directory for Hugging Face
|
8 |
+
RUN mkdir -p /hf_cache && chmod -R 777 /app/hf_cache
|
9 |
|
10 |
# Set the environment variable for the Hugging Face cache
|
11 |
+
ENV HF_HOME=/hf_cache
|
12 |
|
13 |
# Copy the requirements.txt file and install the dependencies
|
14 |
COPY requirements.txt .
|